Shadow clipping

I’m getting this weird effect where shadows are being clipped. It seems to have to do with camera distance, since when I move the camera the place where the shadow is getting clipped changes. (seems to be a fixed distance from camera)

I’ve tried tweaking camera settings like clipping distance and nothing has worked. This is for real time shadows btw, I have no problems with baked ones.

See Screenshot

I recommend to watch this video. esp. 6:13+