QR Remains Black Randomly (Sometimes)

Does anyone have a solution that makes the QR code scanner component work consistently (yes, the app has camera permissions enabled)? Sometimes the scanner is entirely black (won’t work), and sometimes it’s mostly black with a thin sliver of the camera (this somehow still scans), as seen in the picture below.

Months ago, it worked properly every single time. Any help would be appreciated.

Let me know if anyone has seen this issue.