The twitching is a factor of stressful situations in your life. Stress in your body causes your body to use up more magnesium than usual so you will find in most cases you lack the proper amount of it. The easy but difficult way to face this is to validate your feelings about the stressful situation and take action to removing thoughts that haunt you at night when you go to sleep. This way your body won't need as much magnesium when you relieved of stress. But if you don't feel ready then I would highly recommend more supplements, or food with high magnesium such as dark leafy greens, nuts, seeds, fish, beans, whole grains, avocados, yogurt, bananas, dried fruit, and dark chocolate. Take care of your physical and emotional needs at this time if you are experiencing this. Do not take in junk food, any caffeinated drinks or drink alcohol! These substances actually bind with magnesium inside the digestive tract, rendering it unavailable to the body. Refined sugar is not only a zero magnesium product but it also causes the body to excrete magnesium through the kidneys. The effects of certain drugs have been shown to reduce magnesium levels in the body by increasing magnesium loss through excretion by the kidneys. So if you are on medication talk to your doctor to be properly prescribed. Too much magnesium can be just as harmful causing diarrhea as the body attempts to excrete the excess. Take care and be safe. I have experienced this random twitching so I feel your pain and insomnia. Best of luck, love and light to you all!