I forgot to add that at the end of it all, despite all their flaws, DO YOU BELIEVE that they want a life with you and are taking action to protect the relationship? If you don't sense or see that they care whether or not you're a part of their life, then their flaws will seem magnified to you and the relationship is going to end because you're the one who will walk away.
However, be careful of why they want you in their life. If they are a narcissist or have strong narcissistic traits, then they only keep you around because you are supplying something they need. Maybe you give them consistency and stability. They know you're always going to be there when they mess up their personal life, finances, relationships, friendships, etc. Your positive energy is a distraction from the stress going on in their life. You are their forever placeholder until they find their one OR they might even keep you in their orbit after committing to someone else because they need something from you that they can't get from the other person. This type of person is toxic and you should cut them out of your life permanently.