Having used Contabo in the past, I can say that the problem is with your machine. Switch to a dedicated server from another company.
Also, make proper mariadb configuration. I would personally hire some server administrator from upwork or other website to configure my server, since there is not any one-fits-all solution.