I think the lesson I learned the hard way was pay more attention to your chain’s condition, clean it, lube it, take note of how the transmission shifts, noise etc.
mine had started to become troublesome, often skipping a tooth, & would randomly self shift to a higher gear!
after watching 100...