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

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