Don’t practise until you get it right, practise until you can’t make a mistake.
Say you practise a new piece on the piano a hundred times, and you play it right once, your success rate is 1%. If you try and play it in front of an audience, you’re likely to make a public mistake.
On the other hand, if you practise that same piece a thousand times, but the final 100 play throughs you don’t make a single error, then you’ve practised until you can’t make a mistake.
How much are you practising? And are you stopping too soon?