If Defender has turned itself on then I’d suggest turning it off, running a repair of Avast followed by a reboot might cure it or you’ll have to disable it manually.