Avast has been painful for years, I binned it off in the Windows 7 era as it got more bloated and buggy. No surprise it's causing problems.
To be honest, having any commercial AV active during an OS upgrade has always been technology suicide anyway. Surprised Microsoft don't detect it during prerequisite checks and just say no.
Paris - because even she doesn't check for viruses before overnight maintenance.