Hi and welcome here
I don’t use avast, my antivirus doesn’t do such things, so I can’t offer any guidance.
Usually, AV software have a “whitelist” feature that you can use to prevent it from scanning specific files/apps.
But maybe this is a question for avast support forums?