Why are my lights intensity being set to 0 in built player?

I’m using unity 2020.3.34 with the HDRP, and have just noticed that when I try to run my game as a built player, the intensity for Directional Lights (and only them) is being set to 0. I don’t have ANY scripts modifying this value anywhere, and it doesn’t seem to happen when running with a Development Build, only Release

Edit

I have updated to Unity 2022.1.6f1 and am still having this issue

Ended up finding the issue, and it was just one of my optimization scripts I had which disables lights that are a certain distance from the player. Turns out I forgot to check if the light wasn’t a directional light first before disabling it.
If anyone following this was having the same issue, run a full solution search for intensity = 0 or something equivalent.