Windows 10 will not delete avast, only a user can do so.
https://www.avast.com/faq.php?article=AVKB133

You don’t have to stick with Windows 10, there is FreeBSD and a lot of Linux distro’s that you can use.