I also have some static sites hosted on AWS (S3) but I haven’t noticed any problems for a while. I would recommend setting up some kind of monitoring in order to understand what is actually happening.
As for 522 Error, this CommunityTip should keep you covered:
I hope it helps. Please let me know if I can help you with any further questions.