This sounds like night terrors not nightmares, even though you're awake half the time. You probably need treatment for the condition of night terrors.