If you are committed to staying, the only way I can imagine you can do it and stay sane, into completely accept him for exactly who he is, how he is, at this moment, flaws and all. To stop expecting him to change into someone who doesn't behave the way he does.
If you can't do that, or won't, then no one is benefitting from being in this relationship.