Earlier quoted context omitted.
"I failed that exam because the professor thought 1 + 1 equals 2. What an idiot, 1 + 1 obviously equals 7.5" What do you think that person will benefit more from? "You're wrong and the professor is right, you should work on your math skills", or "Wow, what an arrogant professor. You're totally right."?
Or, "I understand the frustration, failing exams sucks whatever the reason. In this case though, 1+1=2". The delivery matters, even more so when the person is in a difficult position. Also in this case we don't _know_ that they are wrong, we only think it likely based on assumptions. It's probably more likely that OP said "random" out of frustration, and they've since removed it from their post.
"Oh, you were frustrated, it's fine then" is another thing I disagree with. It's not, and that may explain the "why", but it shouldn't be a reason to tolerate it, or you're normalizing the behavior and next time when that person is in a "difficult situation", they'll slash some tires because they're not learning to control their emotions. I'm sure it comes from a good place (learning by mistake is painful, and you don't want people to experience pain), but you'll keep people from learning if you try to take away the pain.
And let's be frank: nobody, you included, thought that "Microsoft fires their employees by RNG" was a possibility.