Looking at your screenshot explains the reason for the exception.
I don’t understand how you expect avast! or any other program to give you a different answer.
If you don’t want the error message, exclude the folder from your scan.