Shudder Attack ?

I was just nursing my baby and his head was kinda spasming... not long maybe a couple seconds but it freaked me out. Has this happened to anyone? I’ve read it could be a transition into sleep when over tired