Shadow jumping problem

i made a copy of the ue4 sky box (BP_Sky_Sphere) and added your version of the code to it, however it seems to work at fast levels but slower levels like here 0.005 cause the shadow to once again start jumping.

although something new i tried the exact same code on a different project and it wasn’t jumping back and forth, but it was moving far more smoothly