I've had the same issue occasionally. I've had it extensively chkd out by specialists. It's definitely tied into dehydration AND low potassium levels (for me, anyway).
So, staying hydrated, keeping potassium levels stable, by eating potassium-rich foods +/or supplements, w/o overdoing it, of course. (That's wht works for me.) Good luck.