The only way I can avoid making mistakes is to do nothing. The more I do, the more mistakes I make, because mistakes are a natural part of learning. The only way to improve the success rate in anything I do is by practicing.
I cannot have excellent results from the first few times I started something new: a habit, a project, a relationship, a job, etc. Excellence comes with months or years of practice, depending on how complex the new skill is, on how great a mentor we have guiding us, on our self-discipline, on how vast is our genetic potential, and on many other factors.
I admire people who move on and try again when they make a mistake. Only those who do nothing at all can avoid the risk of failure. Yet, failure and mistakes are just names for words describing stepping stones to success and fulfillment. They can be “new mentors”, if we allow them.