Failure can be hard. Failure can feel like the worst thing to ever happen to you, especially if that risk created loss. Financial or Personal loss can be detrimental to your ability to keep functioning. You have to go into every project, venture, task, with an open mind that there is something you can learn from failure. Failure will provide you with a lesson. Lessons can be applied to future work.
You will fail if you are going to succeed.