Looks like an issue with the Pages extension.
Can you check the full error message (debug should show it). It will be in HTML format but somewhere in there should be the error.
520s are often Cloudflare errors. The body of the error page will contain more details.
If you're not using Cloudflare then your webserver logs should have that 520 error logged somewhere with maybe more details.