One of the reasons the Segway was so expensive is they built it like medical devices, with tons of redundancies in its systems for this exact reason. So if one computer glitched out it wouldn’t just chuck its passenger head over heels.
As we know, once hoverboards got really popular the cheap ones (perhaps most?) were NOT built that way. I saw someone nearly faceplant when theirs ran out of battery and stopped on a dime.