VxWorks has been battletested in NASA space probes for over 30 years.
https://en.wikipedia.org/wiki/Comparison_of_embedded_compute...
I recall an early bug in the 2004 MERS duo. They were the first to use flash memory and its new drivers. The file freelist busted and the OS kept on rebooting. Fortunately a fix was uploaded from Earth.
https://en.wikipedia.org/wiki/Spirit_(rover)#Sol_17_flash_me...