Stress and emotions are a very significant factor with food cravings. Knowing this is just the first step. The next step is doing something about it rather than reaching for the sugar or the food in an addictive pattern when stressed, anxious, tired, overwhelmed or in need of comfort.
Long term patterns of eating and handling stress can also effect our brain chemistry over time and deplete us in ways that in turn effect cravings. So it can become a vicious cycle. There are faster ways out through nutrition and emotional release that work very powerfully to heal the underlying causes often of lifelong binge behaviors and food obsession.