Cloudflare will time out if a response is not received from the origin server within 100 seconds. This time limit can only be increased for Enterprise plans.
You will need to modify your application to fit within the limit or not use the proxy.
Advice here.