I went to Avast → Settings → Troubleshooting → Enable avast! self-defense module. UNchecked this option and clicked OK.

However, going back into settings shows it’s NOT letting me uncheck it. It remains checked.