If your confidence depends on how well you do, it shifts with each success and failure. Value yourself before you know how it went and again when it didn't go well. Confidence that comes from valuing yourself tends to last longer than the confidence you get from results, since a miss doesn't change your opinion of yourself.
Simple habit that's helped me make things work. Pick one approach and change something before you try again. How many attempts you make usually matters more than how good the first one was, since each change shows you what the last one couldn't. One try is not enough. But if nothing changes between tries, you've done the same thing ten times.
A decision you can't settle often isn't a puzzle. You already know what you'd pick, but you're dreading how one of the outcomes would feel. Say you're thinking about quitting. You can picture the first Sunday night afterward, lying awake wondering if you made a mistake. The decision looks hard because that Sunday night comes with it.