Along with many others, I’ve been having the random 520 error problem on my website, starting last week.
Yesterday I upgraded my CloudFlare plan from “Free” to “Professional”.
The errors stopped IMMEDIATELY.
Therefore the problem is with CloudFlare’s free zone.
I make no further comment on this “solution”.