I have a life philosophy about this: failure is the path to success (I've never learned anything by being right).
It can be hard to maintain the mindset, but it's actually true -- we learn from our mistakes, so nothing is a failure as long as a lesson was derived from it.
If you can maintain that mindset, it takes a lot of the stress out of things!