The 524 error is been caused by long-running processes on your CyberPanel server. You need to use htop
to view what is using alot of memory or CPU if this - A timeout occurred: Error code 524 - #2 by josephgodwinke has not worked for you.
$ sudo yum install htop || sudo apt install htop || sudo dnf install htop