HI thre4 me,
It is possible that your dog is having partial (focal or Aura) seizures. This will not render a dog unresponsive however it will show abnormal behaviors. Some dog will hide, circle, pace, lick the air, snap at imaginary flies, pace, whine, bark , become clingy to the owner (or the opposite) ,wander and the list goes on. There are breeds that are more prone to epilepsy than others, however any dog can experience these. These type of seizures can last from minutes to days in duration.
I am going to direct you to a site on epilepsy and there will be explanation of the different types of seizures a dog can have.
Dogs can get compultions just as people do. This would be an activity that is done over and over without the control to stop.