Hey,
I am an expert in Python/ML and I use AWS for everyday coding.
Based on the error message/screenshot, I can say that the problem could be with the image(s) that you are trying to iteratively stitch together and the logic. I should be able to debug and fix it for you if I get access to your code.
Looking forward to having a discussion. Happy to help!
Thank you!