potassium, calcium, sodium, magnesium, vitamin
B complex, or
vitamins B1, B3, or B6 and Vitamin D.
Generally deficiencies of any of the above can cause muscle twitching and spasms in localized or generalized areas of the body. Get your kidney function, parathyroid gland function and adrenal function tests done because these affect the electrolyte balance in the body. Stress, alcohol, caffeine and fatigue all cause similar symptoms. Hence if you take alcohol or coffee then cut this down.