Try adding the Malwarebytes Program folder to the global exclusions list in Avast Settings/Antivirus then add the Avast program folder to the Malwarebytes malware exclusions.