frustration and discouragement

I have discovered that I buffer by eating when I feel either discouraged or frustrated at work. I get what I need to get done accomplished, but it feels like eating as I figure things out “helps” me to come to the solution I need. Any tips for allowing myself to feel these emotions while figuring out my work solutions and not resorting to stuffing my face in the process?