Was going to say the same. I learnt of the Ariane 5 explosion in a class on critical-systems software development. The out-of-range error that cost $0.5bn.
It wasn't even the out-of-range value that caused the failure--that would have been fine. The failure was caused by trapping the error, and dumping debug data onto the realtime control bus.
A summary of the failure: https://www-users.math.umn.edu/~arnold/disasters/ariane.html