For example, you mention the computer on the Apollo 11 lunar module crashing. In fact, it was recovering and working properly. The astronauts had left the rendezvous radar on during descent, in case it was needed for abort. That was not a nominal configuration, and the radar kept stealing cycles and causing the guidance computer to be overloaded with tasks. Remember, it was a hard real time system. What did the computer do? Reset and prioritize the key task: landing.
Apollo 12: Got hit (twice) by lightning. The electrical system wasn't fried, it survived it, in a protective mode. Importantly, the computers in the Instrument Unit, placed on the third stage, were completely unaffected.
Apollo 15: One lost parachute, still landed safely (if a bit hard) because of redundancy.
I could go on, but you get the point. It was a well-engineered system backed by a team of engineers.