I woke up in the middle of the night holding on to the bed.
I rolled onto the floor and crawled to the bathroom. Took a bit to get there things like the doorway moving and trying to catch the toilet.
Turned out to be an inner ear problem.
I still deal with it from time to time.