When I use proxied DNS records, it reverts to the old DNS settings. After a bit of googling, I found something called liberating the hostname https://liberate-the-hostname.pages.dev/. Although, I can’t use this since I need to use the CNAME record. Also, it looks like I can’t contact Cloudflare support since we’re on the free plan.
You might want to check if anyone has access to your Cloudflare account:
See https://dash.cloudflare.com/profile/api-tokens if any tokens and keys exist and remove them if they are unwanted. Also change your password and check if you have any current sessions in https://dash.cloudflare.com/profile/sessions other than your current session.
Also, go to Cloudflare Dashboard → Manage Account → Audit Log and activate “Include user level activity”. The next time you activate proxy and your DNS settings change, this should show you who did it.
That would be very very strange. When you activate proxying, Cloudflare resolves the domain to their own IPs instead of yours. Can you confirm with DNS Lookup Tool - DNS Tools - MxToolbox that what you’re seeing is not Cloudflare’s IP address?