Confidence often serves us quite well when rooted in a strong understanding of our own capabilities.
Strengthening this understanding may involve some failure - finding and exceeding our limits.
We can then build upon or expand those limits.
Confidence can bloom from failure.
You've got this.