Very much doubt that this has anything to do with Avast or any infection. Infections do not tend to disable your internet, they use it to spread.
Sounds like faulty HW (router, modem, or whatever you use.)