This sounds like vertigo which is harmless,my mum experienced this a few years ago she said it felt like a swaying feeling like you say "walking on to a boat" and she has suffered with headaches/migraines for a large part of her life which probably triggered it. I wouldn't worry about it!