Zend certified PHP/Magento developer

Magento after setup ReflectionException Class MagentoSearchViewModelConfigProvider does not exist

I setup my project in localhost and I get the below error when try to access frontend.

Exception #0 (ReflectionException): Class MagentoSearchViewModelConfigProvider does not exist

My project is on Magento Open Source 2.3.4 and is in windows subsystem Linux (Ubuntu 18.04)

The admin URL returns below error.

ZendHttpHeaderExceptionInvalidArgumentException: Invalid header value detected in vendor/zendframework/zend-http/src/Header/GenericHeader.php:55

I tried to redeploy everything, but the errors remain same. Can someone please suggest me what is missing here.

Update: Admin issue was fixed. Only the frontend issue remains now.