Only just recently noticed this. I know the pages are there since updating and adding new ones causes no problems in being seen.
But for moments the other day and today, when I deactivated Cloudlfare I then ended up with 404 errors on a a good number of pages.
Just tried again as I was writing this post and there they were as if there wasn’t any problem to begin with. Mind you, I did clean out the caches everywhere after each instance.
Ok, so the issue didn’t resolve until you turned Cloudflare back on. Then if you turn it off again the issue returns. Is that the case?
If so, that means that there is an issue with the origin that is preventing access to Cloudflare for those pages. This is typically an issue from the hosting provider. Have you made sure that Cloudflare IPs are allowlisted at your origin?