Throwing up is a bad idea.
I also suffer with the same sort of thing occasionally when I get stressed, and if I do eat too much I drink a lot of water. I think comfort eating is one of the ways of coping with stress, but what you have sounds similar to what I have, so I'd say it is some sort of bullimia.
It's good that you think you've figured out the problem, or trigger as it were. That's the first step to fixing it.
What I do is, if I'm feeling stressed and get the urge to eat a lot, I take deep breaths and imagine how I'm gonna feel if I do let myself binge. And if I do have to have some, I won't completely restrict myself. I'll have one or two pieces. I also find not buying it, or having it somewhere where I almost don't know it's there helps.