OCR Loop with try catch

I have a similar process but never encountered the error you said. Try below and see if it works