Eliminate the word "failure" from your vocabulary as it is merely a chance to gain knowledge. Many successful individuals faced setbacks repeatedly before reaching their goals.
Thomas Edison famously remarked, "I have not failed in inventing the light bulb. I just found 99 ways how it doesn't work." Use your perceived failures as learning experiences to improve and succeed in the future.