This error generally occur if another antivirus 1) is installed in your system or 2) was poorly uninstalled. Which was your previous antivirus before avast?