You searched for: “dementophobia
dementophobia (s) (noun), dementophobias (pl)
A fear of being or going insane: Those who suffer with dementophobia are afraid that they are losing contact with reality, members of their families, or friends.

Another reason someone might have dementophobias is because he or she has severe depressions, headaches, dizziness, or difficulty breathing.