I was also getting this same error after following the subtheme Olivero instructions.
https://github.com/mherchel/olivero-subtheme
What happened was I was renaming everything to olivero_company. Even though I told PHPStorm to use case sensitive when performing the find/replace, it still performed the action twice on class OliveroPreRender implements TrustedCallbackInterface {}
making it class Olivero_company_companyPreRender implements TrustedCallbackInterface {}
.
It might be worth checking the above class declaration in the src/OliveroPreRender.php file. Remember, this may be named differently depending on your theme name.