I have the same error if i want run Defender manualy. I think this is normal. After Avast uninstall no more error appear.