An AI error nearly escalated tensions into a conflict between the US and China, highlighting the need for balance between automation and human oversight.