Just about impossible to blow through your glycogen stores in two sprints. However, that doesn’t mean you’re not properly fueled.
What you ate yesterday basically fuels today. That banana you ate thirty minutes ago won’t be converted as usable for your glycogen system in totality for the better part of multiple hours.
Pacing seems to be your culprit from what you described. Possibly not enough of the right macro mix, but can’t really tell.
Figure out your BRM first. That’s baseline. Then craft to the proper macro mix based on what you’re doing/working for.
It’s not a one size fits all. You’ll have to do research and experiment for what works for you.
Just as an example - my Baseline calorie intake is 2050 - that’s just every day living. On big training days, that number can easily blow up to 4,500 - 6,000 calories. The macro splits are dictated a day in advance. Meaning if I’m doing longer MAP and above efforts, more carbs. More low effort base miles, more fats. Proteins stay relatively consistent unless I’m in a big/heavy MS phase like I am now and then that pops up to 2-3g/kg.