Shadows disappear at a certain distance

It doesn’t work on Unreal Engine 5.2.