Web 3 IPFS gateway returns error code 524

I have a website hosted on Web 3 IPFS gateway. The source server of this website updates and uploads to Pinata IPFS. However, when I modify the content of the website’s source server, my website on Cloudflare Web3 sometimes returns error code 524, and the response is slow. I would like to understand why this occurs and if there is a way for me to fix it. What steps should I take to resolve this issue?