Fighting sleep?

Me

Hi! My son is 6 months old. Lately he’s been fighting his sleep. Not exactly sure why we do everything the same every night. Anyways he’s been shaking his head side to side. Almost like he’s shaking his head no but way faster and more then once. I’m not sure if he’s fighting his sleep or if something else is wrong. He goes to see the pediatrician here soon but for now this is my first child and like idk what to think especially since I have epilepsy, it’s scary. Can someone please confirm or not that a baby would do this while really tired?