Dynamic shadow from stationary directional light shows on top of shadow caster

Above a certain distance the dynamic shadow shows up on top of the mesh, that is casting the shadow instead of behind the mesh.

The stationary directional light is not set to use Cascaded Shadow Maps. And I am using the following commands to increase the distance at which shadows are visible:

r.Shadow.MinResolution=8

r.Shadow.FadeResolution=10

r.Shadow.TexelsPerPixel=2

I have tried changing r.Shadow.TransitionScale to fix the problem, but to no avail. Obviously I could fade out the shadow above the problematic distance, but that’s not what I want to do. Do you have any other idea, how I could fix the problem?

I just tried changing the stationary lights shadow bias, but it does not seem to have any effect.