Website closed connection

Greetings,

I am sorry to hear you are experiencing an issue with Error 522.

Before moving to Cloudflare, was your Website working over HTTPS connection?

Also, was your sub-domain working over HTTPS and have you had a valid SSL certificate?

May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?

May I suggest below articles: