A lot depends on when avast gets started as one of the system processes that it requires might not be loaded yet.
You could delay avast on boot, Program Settings, Troubleshooting, Delay loading of avast! services after other system services and see if that makes a difference.