The CEO of an AI startup says a major gaffe he made earlier in his career taught him what good bosses do when employees screw up.