Optimize behaviors, not outcomes.
You can directly control the actions you take, but not the results they lead to.
Reward yourself based on taking the right action, use outcomes as analytics to learn from.
Confusing the two leads to anxiety, frustration, and beating yourself up over things you can't change.
Don't burn your mental energy on things outside of your circle of control, instead - try to spend all of it on taking actionable steps.