Sorry you didn’t get a response earlier on this, here is some general info on the error,
A 522 error typically happens when Cloudflare requests to the origin (your webserver) get blocked. Review the suggestions in this Community Tip for troubleshooting ideas.
I suspect you may have been caught up in an issue with a peering partner that was about that time so hopefully it all works now.