I believe this can be caused by cerebral allergies where foods you use or things you ingest from the environment go directly to your brain. You need a clinical ecologist to help you. Many people have been institutionalised and diagnosed wuth mental disorders when they just need to find out what they are allergic to. Google 'cerebral allergies' or 'brain allergies' and get hold of a book called'Coping with yourAllergies' by Natalie Golos. This will help tremendously.