Cloudflare Pages Custom Domain: Inactive (Error)

I can’t add a custom domain to my cloudflare pages, it says “Inactive (Error)”, but with a custom subdomain it works normally.

Hello, Have you followed the steps described here?
https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors#522error


If you are using Cloudflare Pages, verify that you have a custom domain set up and that your CNAME record is pointed to your custom Pages domain.