There have been a number of topics on this particular subject.
As far as I can recall a workaround, is to disable the avast Self-Defence Module before running it. AvastUI > Settings > Troubleshooting - uncheck the 'Enable Avast self-defence module' option.