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?

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.