Cloudflare "520 Error" - OpenLiteSpeed/DirectAdmin


I'm using openlitespeed with directadmin. I am getting 520 errors on some websites. Could a wrong configuration on the openlitespeed side cause this? where should I start debugging? I've been trying to solve this problem for a long time.

Note: Today I upgraded the openlitespeed version from 1.7.4 to 1.7.5 and the problem started to appear more and more.