I tend to have thoughts that maybe I have a genetic disadvantage that prevents me from excelling from things that I care about (programming, computer science, drawing, etc.), but I would rather die with the illusion that I could succeed in anything I set my heart to, than in to throw in the towel and accept that I'm hopeless. Having that mindset is working out for me so far.
Readjust what "failure" means for you. If you've improved, it's not a total failure. Pursue what you love, and steadily improve upon it.
It's common for people to always adjust their goals upwards when a milestone has been met. But it's also healthy to adjust them downwards, and take satisfaction in the act of improving.