Error code 524 indicates a connection timeout between Cloudflare and your origin server. This usually happens when your server takes longer than 100 seconds to respond to a request.
Could you please try pausing Cloudflare and letting us know if the issue persists? Refer to the following article if you need help with this: