Please tell us what hostname(s) you’re having trouble with so we can help!
Without more details, I can say that 522 is usually reported via Cloudflare, and if you are seeing it from Cloudflare, the only way you’d get it on a Netlify site is if that site were misconfigured as described in this article: