How to fix Ahrefs Google Search Console Cloudflare errors

How to fix Page has links to broken page error caused by Cloudflare /cdn-cgi/