I have had A different issue giving me a 504. It can be rather far out but I am going to create it up in this article for googlers and posterity...
sluggish-managing backend procedures or scripts can cause the upstream https://woracious.com/seo/ramifications-of-the-504-error-on-seo/