Glad you are posting here. It sounds like you are getting yourself on a good path as far as figuring out what you can and can't control and focusing on you and what you can fix about yourself.
I know it is frustrating to have a spouse angry with you no matter what you do, but it sounds like you are learning to let it roll off your back.
I have a daughter about the same age as your S, and I know how trying that age can be too, even without this other mess going on with your spouse. Hang in there!