I am sure people who suffer from DID, PTSD, and other mental illnesses where there are times when this could happen.
I am sure you have read that it's the body's response to perceived harm.
However, if you do not already have a therapist, then you need one to help you with a focused therapeutic plan of treatment for yourself.
__________________
I get fed, don't worry.

(Buddy putting in his 2bits worth)