Thank you for your post, video and database file.
Our Development and Testing departments are aware of this issue with QR code scanning being inconsistent and returning no values. I have attached your post to the original report. When more information becomes available, I will let you know.
As a workaround, insert error checking to determine if the result is empty, much like you already do for errors not equal to 0 or 1.