I've heard this behavior can be a type of seizure. If you Google the phrase, you see they call it an aura or petit mal type seizure.
https://www.google.com/search?newwin...78.E4spGRELOjY
Why don't you video it and take the dog and video to the vet or neurologist and see what they think.