I got them too and they were awful. I was told they were caused by a deficiency in calcium and potassium and to have a glass of milk and a bananna before bed. It worked a treat for me, I never got one when I remembered to do it.