Please learn to forgive yourself for the times you didn’t know better. Forgive yourself however many times you need to. Let go of the mistakes you made in the past, you’re growing & learning everyday. You now know better, so go ahead & continue to do better.
I'm a big fan of the "GPS Theory" when you miss a turn, your GPS doesn't judge you, it recalculates. No matter how many detours you take, it finds another way forward. Life works like that too. You'll make mistakes, but your destination doesn't vanish. The route just changes.