S.A.
My mom's pug had the same problem. She took him to the vet and he said it was mild epilepsy. He was on medication for a few years and that helped a lot. Now he's been off the medication for about a year and is doing well. I would see the vet asap.