What happened to the sudden jerking and frequent waking up while sleeping?

I was awakened at 3 a.m. in the night fearing late sleep difficult to continue dreaming, twitching, waking up, repeatedly sleepless epilepsy, calcium deficiency, stress, where is the truth?