Failures happen to everyone and it is not the end of the world, only a sign that you are moving forward. If you are failing it means that you are doing something new that you have never done before. Failures are to be expected and embraced even though they can be difficult to handle in the moment.
Failures help you to grow as a person, as a leader and in any other role you may be taking on. Some failures might be not getting the job you applied for or not performing as well on a project that you hoped to perform well on.