MySQL server issue

Hello, I have matomo installed on a cpanel share hosting running php 7.4, when i click on “System check” option i get Mysqli prepare error: MySQL server has gone away. I have looked into the wiki but cpanel don’t have the option to edit MySQL config file, can someone please help me?