Bear in mind that fear of the unknown is perfectly natural
Why are we afraid of failure in the first place? As a Brian Tracy blog post states, the reason is fear of the unknown. The human mind is naturally programmed to feel comfortable in the status quo, the way things are at the moment, because the unknown may conceal potential danger. So the first step towards overcoming the fear of failure and gaining self-confidence is realising that fear of the unknown is natural but you can overcome it if you choose to.
Another psychological trick to help you prevent paralysis by thoughts of failure is to envisage success. Imagine what it will be like when you achieve what you want. Take it as a given that you have already achieved success and try not to dwell on the idea of failure at all.
Write down your achievements and objectively strong skills
Fear of failure is often caused by low self-esteem or manifestations of the so-called imposter syndrome. People frequently get so caught up in these thoughts that they forget everything they have objectively succeeded at. Try to reverse this principle and write down what you are objectively good at, what you have done well in your life and what makes you unique. You may be surprised how many accomplishments in your life you can be proud of.
Treat partial failures and rejections as opportunities
The road to success is paved with partial failures. Legend has it that Colonel Sanders, whose face is depicted on the KFC logo, was rejected a total of 1,009 times with his recipe for fried chicken and concept for a new fast food chain. Only then did KFC become a national, and subsequently an international hit. Or comedian Bill Burr, currently one of the most respected and highest paid stand-up comedians in the US, has stated how, for several years early in his career, he was consistently booed off stage. You must not be discouraged by failures. Regard them as opportunities and do not allow partial failures to paralyse your further journey to success.