The 520 error is essentially a “catch-all” response for when the origin server returns something unexpected or something that is not tolerated/interpreted (protocol violation or empty response).
Usually the error is on the web servers' side. There isn't anything you can do about it unfortunately.