In my case, mistakes have helped me to improve my perception and stance towards gambling. I consider to have grown up with my mistakes, so even though they had a negative impact over me in the past, they have helped me to reach a wiser state of mind. In general, that is the impact mistakes should have over our existence. If they can't help us to identify our flaws and to improve ourselves as individuals, what is their purpose, after all?
You can always learn with your mistakes, and by doing so, it means you are going to break noxious behavioral patterns in your life. Be attentive to that!