There are several reasons why your Pixel 8’s QR code scanner might stop working suddenly. It could be a temporary glitch with the Camera app, an issue with lighting conditions, or even a dirty camera ...
If your Android device is not scanning a QR code, make sure the code is properly framed on your screen. Cleaning your camera lens and getting better lighting on the code are other potential solutions.