Failure is a potential issue for all of us.
But it is neither permanent nor is it terminal. Solid preparation will help you overcome any short-term failure.
A strong mindset, a clear set of goals and a compelling vision are powerful elements that will help you overcome the feeling of failure and allow you to see it as a learning opportunity.
Ensure you work at these all.
Particularly your mindset.