Disabling avast for 10 minutes won’t cut it as that is disabling only the scanning protection, but it won’t stop the avast Self Defence module from protecting avast itself.

AvastUI > Settings > Troubleshooting and disable the avast Self Defence module. Now you can run notepad as admin, open the avast WebShield.ini file and do the edit.