You are not accepted because of your successes. You need to understand the basis on which you are loved and accepted as a child of God. You are accepted because of Jesus Christ. Not because of anything you have done or not done. Ephesians 2:8-9 makes this very clear, For it is by grace you have been saved, through faith—and this not from yourselves, it is the gift of God—not by works, so that no one can boast. It doesn’t matter how good you are or how many successes you’ve had. That’s not why God loves you.
That is one of the most important lessons that our failures can teach us: there is nothing in us that deserves God’s favor. Our failures help us grow a real humility and an honest assessment of ourselves before God. Failure helps us to acknowledge our weakness and helplessness.
Failure brings us to God and puts us in a position to let God work in our lives in such a way as to get all the glory. We become convinced of how much we need God because we are so prone to failure.
It has to be grace. God’s grace and faithfulness are not given to you because you earned it. They are given because God made a promise to be committed to you because of Christ.