No one is perfect. We are only moving towards our desire for perfection. Everyone makes mistakes, so stop beating yourself up with depression.
Maturity with knowledge and the strategy of thinking before attempting a task reduces mistakes.
Where there are no mistakes risk is not being taken. Where risk is not taken life is barren.
Choose to take risk rather than do nothing because of mistakes. Mistakes are just resources with which the Foundation of our advancement is built.