charley horse
American, informal
a sudden, painful tightening of a muscle in your arm or leg.
She got a charley horse in her leg and had to stop dancing.
Cambridge English Idioms Dictionary