A 524 would occur after 100 seconds of no response from your server - have you checked your server’s access/error logs for those requests?
You could also check if Cloudflare is blocking any communication in the firewall event log (https://dash.cloudflare.com/?to=/:account/:zone/security) but it’s unlikely.