Although we are still some decades away, IMHO, from building full Artificial General Intelligence, we have succeeded in building some kind of artificial intelligence based on deeplearning techniques which are in some ways better than the older GOFAI systems of the 50s - 80s era.
It is natural that humans avoid failure at all cost. This is because the emotions associated with failing are unpleasant and we would all prefer to be in the emotional state of winning all the time.