I encountered a problem with Volumetric shadow from volumetric fog

How can I fix it, and what is it even about?

So if someone else encounters this problem, I’ve found the cause and solution. The issue is related to megalights. If you’re using megalights and your light sources have the Ray Tracing method set for megalights, switch it to Virtual Shadow Map.