Getting HTTP ERROR 500 after upgrading PHP version from 5.6.4 to 7.x

I tried renaming the plugins folder via FTP to deactivate them, and same error. Deactivating the themes and leaving only Twenty Nineteen active did not help either.

Enabling WP_DEBUG returned no relevant error.