vestibular.org/article/diagnosis-treatment/types-of-vestibular-disorders/mal-de-debarquement/ gives a pretty decent run down of the (lack of) understanding of the causes and various theories about it.
After 2 or 3 days off-shore in roly-poly conditions, I have had the not uncommon experience that my brain is still compensating for the movement even after I am on dry land. But so far, for me it is not distressing and is relatively short lived.
My completely amateur response if it was going on more than usual would be to go for one or more longish walks on flat ground, preferably on a sunny day and with my eyes up and looking at the horizon. That is, trying to convince my brain to stop compensating, by exposing it to steady predictable motion - the opposite of the prolonged unsteady, unpredictable motion that caused it to compensate in the first place.
Good luck with it, I hope it is gone soon.