Thank you for all the information,
This can be due to a few possibilities. The symptoms can be muscle spasm. Deficiency of calcium, magnesium, potassium, sodium- vitamins, dehydration etc. are the major factors. Poor circulation, neuropathy, hormonal imbalance can cause muscle spasm. It can also be present in diabetes, hypothyroid state. You may try some home measures- Tylenol or Motrin can be taken. Please take plenty of fluid, fruits, vegetables. Regular exercise or a walk daily to keep you active but do not over stress yourself. Stretching or gentle massage can also be helpful. Avoid coffee, alcohol, tobacco
etc, if you take any. In mild cases, those measures help to get rid of it. As it is going on for a while, I would suggest to take an examination by doctor. I hope this information helps. If there’s anything else I can do, please let me know. If you are satisfied, please rate my answer as good or excellent. Regards.