The quote highlighted from this article is just one of several relevant points addressed by this author, challenging the tendency to let negativity impact our performance, beyond the actual issue itself.

My takeaway is that there is always an opportunity to learn from, and benefit from, a negative experience. It might be painful to go through, but what can I learn for the next time? What to avoid, what to change and how to execute differently.

My son's basketball coach has a practice of making the kids shoot the shot they missed over and over again until they can hit it. Don't move away, do it until you have mastered it. I see a parallel in other areas of life, use the failure to be successful the next time (or maybe the time after that).