You searched for: “phrenophobia
phrenophobia (s) (noun) (no plural)
An irrational aversion of thinking or a dread of losing one's mind: Jack was certain he left his keys in the basket, but didn't find them there, and thought he was going mad or was crazy, and therefore suffering from phrenophobia!