Figure out why you keep fucking up, and create a plan to stop fucking up. Admit to your husband, boyfriend, etc that you have the issues, and are willing to do the work to correct them. He will either forgive you or not....you must accept his decision, since you created his shit storm!
Can you elaborate on what you mean by the dog-house? What does it look like? What behaviors of you and your partner create this "dog-house?" I'm genuinely curious to know before I provide my two cents.