Yeah, see previous topics about this on the forum at Search results for ' Connection Error : You do not have permission to complete the operation ' - Nextcloud community
Have you considered asking cloudflare support? You can also link them back to this post. https://support.cloudflare.com/hc/en-us/
Did you try HowTo: Add a new trusted domain