No entry or class found for 'Matomo\Cache\Lazy'

I installed Matomo om my server and everything worked ok.
I had a problem with my website and the guy that helped me solve the website problem changed my url removing the “www”

I have a 301 redirect in my .htaccess file, so the website works ok.
Now I get the following error message when trying to log into Matomo

Error while injecting dependencies into Piwik\Translation\Loader\LoaderCache: No entry or class found for ‘Matomo\Cache\Lazy’

The error log gives:
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php): Failed to open stream: No such file or directory in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php): Failed to open stream: No such file or directory in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(): Failed opening ‘/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php’ for inclusion (include_path=‘/home/meg/public_html/analytics/vendor/pear/pear_exception:/home/meg/public_html/analytics/vendor/pear/console_getopt:/home/meg/public_html/analytics/vendor/pear/pear-core-minimal/src:/home/meg/public_html/analytics/vendor/pear/archive_tar:.:/opt/cpanel/ea-php81/root/usr/share/pear’) in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php): Failed to open stream: No such file or directory in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php): Failed to open stream: No such file or directory in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(): Failed opening ‘/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php’ for inclusion (include_path=‘/home/meg/public_html/analytics/vendor/pear/pear_exception:/home/meg/public_html/analytics/vendor/pear/console_getopt:/home/meg/public_html/analytics/vendor/pear/pear-core-minimal/src:/home/meg/public_html/analytics/vendor/pear/archive_tar:.:/opt/cpanel/ea-php81/root/usr/share/pear’) in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576
[07-Jun-2024 04:11:04 UTC] PHP Fatal error: Uncaught DI\NotFoundException: No entry or class found for ‘Matomo\Cache\Lazy’ in /home/meg/public_html/analytics/vendor/php-di/php-di/src/Container.php:136

Can anyone help ? or should I try re-installing Matomo ?