Error 522 means Cloudflare cannot connect to your origin server/host. So look there for problems.
If in doubt, pause Cloudflare so requests go direct to your server allowing you to see any error messages. Once fixed, you can re-enable Cloudflare again.
Things to check on your server/host with a 522 error…