Patience...soul searching...patience....acceptance of your own shortcomings...patience...gal'ing...patience....180's..patience
In other words time....being honest and truthful to yourself first by looking inside and doing an honest evaluation of your strengths and weaknesses. Then improving those weaknesses by gal'ing and 180's which will also be making your strengths stronger. Sounds like your marriage is far from lost (bumpy with a possible affair) but the work starts with yourself.