Yeah, I get that very frequently myself. Stand up, get dizzy, can't see, wait 5 seconds, fine. I've not closely monitored which days it happens and which it doesnt, but I ride nearly every day so I wouldn't much matter.
One obvious answer would be to make sure you're drinking enough water. Other than that, I'm in the same boat.