Anytime you go too long without eating, let your blood sugar drop, work out or feel stressed, there is a good chance that your food choices are not what you should be eating but instead, what you can eat quickly and easily.
There is a huge difference between the two.
Plus, when the body and brain is depleted, it is a physiological (not willpower) situation that you put yourself in that you will crave sugars and carbs.
Try it out for next week. Plan a few meals and see if this is a game changer for you.
Think about your life, workout routine, energy and biological hunger when planning your meals and snacks.
Don't plan to be "good" or "perfect".
Plan to nourish and to fuel.
(and don't forget to plan for the occasional indulgences too!)