Randomly timesout webpage error 524

Hi
I have been having problems with Cloudflare tunnels. Randomly my web pages suffer from a 524 timeout error, after browsing for more or less 3 minutes, after that timesout, but leaving it around 5 minutes it comes back online and then the error repeats.
To be clear as long as Cloudflare timesout I can still access via local network

I have monitored the console and it gives the following error when timesout:

ERR error=“Incoming request ended abruptly: context canceled”
ERR Request failed error=“Incoming request ended abruptly: context canceled”

The tunnel is running on a server with debian 11 and the configuration was done by CLI.

Sorry for my bad english