Hello @July !
Here is a good explainer of what that error message means:
Typically when I run into that error I start trouble shooting by checking the fields that I have in my calculated field and make sure that I have them in my visual. Also, can you provide more context for your use case, why are you taking an average of an average in this case?