This was caused by the hardware derivatives output being affected by render resolution. Scaling them back to the full resolution value fixes the issue. This also fixes the Wireframe node that also relies on derivatives. Pull Request: https://projects.blender.org/blender/blender/pulls/142101