Frequent 502 and 522 Errors on Site After Enabling Cloudflare

What is the name of the domain?

What is the issue you’re encountering

502 and 522 Errors

What steps have you taken to resolve the issue?

I don’t know how to solve this!

May I ask which steps for troubleshooting have you tried already?
Is your origin host uptime stable?
What’s your SSL/TLS settings at CF dashboard for your domain?
Have you had and still having a valid SSL certificate installed for your domain at your origin host?