5-10 miles before you bonk? bonking is a physiological change in your body, the point at which your body has been depleted of glycogen (stored carbs) and begins to burn fat. which, leads to all kinds of mental stupor and confusion and flat exhaustion.
you aren't bonking. you are simply running out of muscular endurance. spin shorter gears.