Origin Certificate x Lets Encrypt 3 months cert

After getting the certificate using the appointed Cloudflare api, I started getting Error 523 not only on the subdomain but the domain too.
If I turn on Cloudflare, error 523.
If I pause it, than sometimes 502 for sub and ok for domain, ns lookup also finds CNAME and so on.
domain: theapothecary.app
sub: m.theapothecary.app

thanks for helping.