Have you examined all the numbers? What is the output of MA? It might still be accurate, even if one or more lines cause the error. What about trying Average?
I could answer these questions myself if you had posted a GH file.
3. Attach minimal versions of all the relevant files