I experience the same thing after spending a couple months on our sailboat and it lasted for a few months. I was diagnosed with an unusual condition called Mal de debarquement (MDD). Not much is known about it, but it almost always follows an extended time on the water.
No real treatment, but...