Cursor appears on the left side of the screen when moving too fast or when looking around

Untitled

I don’t know how to fix this. The game’s in fullscreen. The thing is that it only happens when I’m turning left. Sometimes it appears on top of the screen, but that’s rare.
And I’m using the default fps template.

High DPI scaling set to application fixes it.