I hope it makes sense to you and solves the problem without causing other issues... I hope.

I've attached a test scene with a spotlight causing this issue so you can try before and after the fix. I noticed this problem also affects background texture (EXR for example) using IBL+emitting photons. In my tests that's also fixed with this commit.