[Help] Disable shadows based on distance

Hi so I’m creating a large building with an interior and exterior as one piece and I have ran into a performance issue when lighting it as there are 644 lights in total (yes I know that is a lot).

The scene runs fine with shadows disabled but it doesn’t look as good and I have tried having a draw distance but I need to have it so low that is causes lights to pop in and out. So I thought of a solution to this but cant find a way to do it and that is to have the shadows based on a draw distance or collision volume as for the most part you will not be able to tell when the real time shadows are disabled as it is only for the doors which can be opened or closed for the rest of the building backed shadows are fine.

So does anyone have an idea on how I can disable and enable shadows based on player distance from the light.