You can customize Avast to NOT scan certain files… including program files… Open the Avast user interface. Settings. Active Protection. File System Shield… Select the black cog… pops up File System Shield Settings.
Exclusions… Follow the instructions… Add whatever you don’t want Avast to bother you with.