I used the Healt Check plugin you suggested, but it is unable to activate the yoast plugin in the troubleshoot mode.
I tried to disable all the plugins and change my theme to twenty twenty and activate Yoast, but this time I get this error, and it does not activate:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected end of file, expecting ‘(‘ in /public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 3211