scare (one) out of (one's) mind
To shock or scare one very suddenly or severely. Hyperbolically alludes to frightening one so severely as to cause them to become insane. Don't sneak up on me like that—you scared me out of my mind! That car accident really scared Janet out of her mind. She's still shaken by it.