Unreal engine 5 PP material AbsoluteWorldPosition returns incorrect value with perspective camera. Rendering UE5-0

Unreal engine 5 PP material AbsoluteWorldPosition returns incorrect value with perspective camera. Rendering UE5-0

This works in UE 4.26 but not UE 5 as you can see in the images below

the piece of shader code to draw it like this
return (length(pos.xy - float2(-420.0, -5770.0)) < 100 ? 1 : 0.5) * c.rgb;