Getting error 522 from some country but working fine if I pause cloudflare

getting error 522 from some country but working fine if I pause Cloudflare

I even added the IP address from that country under the WAF rules to allow the IP but still same error

With it only being certain locations it is most likely related certain ranges not being allowlisted at your origin. Here is the full list of IPs that you would want to allow:

We also have this article for how to block non Cloudflare IPs and allow Cloudflare IPs which might be helpful: