To frighten someone to such an extent that they behave irrationally.
scare the living daylights out of
verb
To scare something or someone to a large degree.
How often have the words scare someone out of their wits and scare the living daylights out of occurred in a corpus of books? (source: Google Ngram Viewer )