Something similar happened to my dog last year but it was when we got back home and he was aware of what was going on, moving his eyes n looking at me, he seemed to settle so put him in his bed. Early hours of that morning he woke me up doing it again but worse so took him to vets. They think he had a been fitting caused by a brain tumour and had to be pts. But guess your dogs behaving different to what mine was
hope he recovers mate atb