I do not think it is serious condition. Most probably it is muscle fatigue
which occur when you use that muscle too much. I would suggest you to do proper stretching and use that thigh muscles little less and then gradually increase all these activity. In other words you have to train your thigh muscles.