It might be helpful to journal your thoughts, emotions, etc. Figure oit what is setting this off.
What behaviors, stressors, spaces, etc., can you make changes in to help you change fhe behavior?
When you track/jornal everything, I think, you will discover what is driving the choices. Once you figure that out, the next step is to figure out how to make changes, even little ones, baby steps, to help you over the hump.