Sounds like you are needing to carry a bit more supply with you…doesn’t sound like a one-off either, so might need a change to force a new habit.
(Sorry for sounding like a grumpy parent, but I do tend to get laughed at with the snacks I carry, but they inevitably are needed by the ones who tend to forget to bring stuff)
I think we encountered @DickBarton when my mate bonked on the Isle of Skye. We were camping at Sligachan and had done the Glen Sligachan round with a “short-cut” across the island from Loch Slapin to Luib. This had involved serious bog-wading and an average speed of about 1km/h and our last chocolate had been consumed long before we got to Luib.
Dave announced he couldn’t go any further. I told him to HTFU as it was only a few mostly flat km’s round the coast back to Slig. He said no way and went and knocked the door of the most lived-in looking property. The guy produced a packet of custard creams, but then held out his hand for payment.
“er, sorry we haven’t got any cash”
“you’d best put that down to experience then lads!”