I'm thinking of having a pie this week
What were you thinking of doing with the pie?
I'm going to eat the pie because I've been so frustrated lately.
While eating some pie as an occasional treat is fine, you shouldn't resort to eating pie just as a means to relieve stress in your life. Stress eating is very unhealthy as all that excessive food will cause you to gain weight. Instead of eating pie, you should look to other healthier ways of managing your stress and frustration.
Eating just makes me feel better about my problems.
I think if this is that much of a compulsion for you, you should consider getting treatment for it.  Both your physical and mental health will benefit from it!