My website is stuck under I am under attack mode

I suggest you contact Cloudflare through the dashboard and not by sending an email. Contacting the support team via the dashboard will open a ticket for you.

Untitled

As for the 524 error, I am worried I got you wrong. The error appears on the Cloudflare portal and not when you visit your website, right? In case you are referring to the 524 error when you try to visit the website while the “I’m Under Attack” option is off, this could possibly be related to an overloaded origin or a long-running process on the server. See here.