Failure is a part of the process of getting from A to Z. It’s not really failure; as much as it’s learning about the process. Allowing you to spring forward.
It doesn’t mean you mess up by repeating the same bad habits over and over again; that’s insanity if you think something will change. Learn, make changes and go forward.
In life you should fail early, fail often and fail forward into learning, less failure and more success.