Recently I taught my Claydol Solar Beam/Hyper Beam just to take advantage of the Crest, and sometimes (with both of them, and not always) I got this error message:
Then I hit accept and the game resumes normally. Also, sometimes the foes just skip their turn after that. It's not a fatal error, it doesn't always happen and the battle usually resumes just the same, but it's there.