it is possible to think about the logs inside the plugin or you could disable it temporarily to discover if services resumes.
To keep your site running easily and prevent foreseeable future occurrences from the 504 https://woracious.com/seo/ramifications-of-the-504-error-on-seo/