Lumen + shadow flickering depending on distance and light attenuation radius in 5.4.1

I’ve upgraded my project from 5.3 to 5.4.1 and started to notice a shadow flickering effect.

Here’s an example - https://www.youtube.com/watch?v=LPKktlk0Fyw

The flickering appears when either the distance from camera is too far and the attenuation radius of the light is too small. In this example the light needs a small attenuation radius (to improve performance) but may be visible from a long distance.

I’ve tinkered with all of the shadow settings that I can see but none seem to affect it. Any ideas what the cause is?

Some more notes that might be relevant

  • The project is using both Lumen and Nanite.
  • When I tried to replicate the issue in an empty level the shadows just disappear at the distance the flickering starts - I’d be happy with a solution that behaves like this, I really want the flickering to stop

Did you ever find a solution to this? I’m having the same issue.

It’s nice to learn that raising the attenuation resolves it, but of course, it would be nice to be able to set the attenuation to the desired size.