Hello,
Thank you for contacting the support and we regret the inconvenience caused.
5xx errors are usually caused due to server misconfiguration or other server issues. Can you please share the error log with us? Having the error log file will give help us determine what is causing the issue on the website.
You can follow this guide to enable debugging in WordPress
https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, they will help you locate the log file.
Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.