You may need to uninstall avast using the avast removal tool, then reinstall a fresh copy after upgrading to windows 10, if you’re having problems. Doing this should (hopefully) eliminate the issues you’re experiencing.

You can find the Avast removal tool at the following link: https://www.avast.com/en-us/uninstall-utility

I hope this is helpful to you.