Please post the log showing the code you ran and the entire error message. There can be lots of different error messages and the text does help diagnose things.
If the issue looks data related you may need to post some example data, made up data is okay if the original is sensitive, that duplicates the error.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.