A few years ago I got a rock between the wheel and brake caliper...it cracked right through the aluminum wheel and that tire was flat instantly on a rental to try out the sport...I was with a dealer and asked him what to do...”ride out” the wheel is ruined anyway (5 miles out). Then two years ago I was 30 miles out trying to catch up to an old (75+) rider that had blown through a wrong turn on a trail (I was the tail gunner) and ended up getting a blow out...my brother was willing to walk out (not 30 miles at 4:00pm in the AZ desert)...we “rode out”...it ruined the wheel and the flopping tire bent the break line...(there is a longer funnier story for another time).
But...even prepared (ok I didn’t have a spare then but I had enough survival gear; I have a spare now!!! 🤓)...there are times you just have to do what you have to do to get back to the trailer. Be safe and be as prepared as you can.