I just put an item in the HUD of my game, and it started glitching with random sprites on the screen before it gave me this error:
How do I fix it?
Wait, I figured it out.
I had my player set to an animation state that I hadn't assigned to it! Silly me.