Fixed it thanks by doing this...
To repair the client software, follow these steps:
Open Control Panel. Select Programs and features.
(Alternatively, press Win + X to open the WinX menu and look for Apps and features at the top)
In the list of installed applications, locate Avast, and click on Uninstall/change.
Click on Change.
avast_change
4. Select Repair.
5. Wait until Avast repairs the client software by making the necessary changes to the data files.
changing_product_avast
6. Restart your PC and check if the error persists.