i was having the same problem. Then I saw that it was actually fixed on github, but it was kept waiting.
com.unity.render-pipelines.universal\Runtime\ScriptableRenderer.cs
line 221.
cmd.SetGlobalVector(ShaderPropertyId.screenSize, new Vector4(cameraWidth, cameraHeight, 1.0f / cameraWidth, 1.0f / cameraHeight));
fix
cmd.SetGlobalVector(ShaderPropertyId.screenSize, new Vector4(scaledCameraWidth, scaledCameraHeight, 1.0f / scaledCameraWidth, 1.0f / scaledCameraHeight));
The problem is that the wrong screen pixel value is sent to the camera. This is a bug that is found in too many places. Lens flare is broken, for example, due to the same error.