It seems this bug is quite camera shy, but at random positions and camera positions a strange red line of pixels on the right edge of the screen will appear
GPU and driver info:
Driver: ReadeonSI
GPU: RX 6800
OS: Linux/NixOS
Mesa version: Mesa 23.1.9
Minecraft version: 1.20.4