We will all face failure at some point in our lives. It is part of any process. You come into life knowing very little, so you cannot see all the pitfalls that are in front of you. You can learn from the mistakes of others, but you will fall at some point as well.
The key is to be able to get up from the fall. Build yourself up and keeping going. Figure out where you went wrong and advance. Be daring.