I can only tell you what I am doing. I told my wife how I feel. I told my boss how I feel. Strangely, my boss had a lot more power to improve my situation than my wife did. Admittedly, he is a good boss. I'm working from home about one day a week, and I've been able to control more of my projects.
But my wife is 20 weeks pregnant with unexpected twins. So I cannot change anything right now. I cannot pack up and take risks. I need to maintain my job no matter how bad it gets, as I need the insurance and the steady paycheck.
Internal acceptance of what you can and cannot control goes a long way to resolving inner turmoil. I spent a few months dealing with the fact that I must lower my expectations of my life. I'm not pleased about it, but that is the way it rolls.
Ultimately, the act that fixed it for me was when I sat down and laid out my priorities in life. My #1 priority is taking care of my family. I wish I saw my kids more, too. But they have a stable home. Seeing them more, but being without a home isn't a good compromise. So I accept the fact that I am stuck at a job that I don't like, working on technology that I do not like, and getting farther behind the curve on new technologies, so it is even harder to move elsewhere. But -- my kids are cared for. My wife is cared for.
I just had to accept that my self-identity needs to change into "Dad", not "technology expert who happens to have a family".
It is hard, yes, believe me, I know.
And if you can change it, I'll cheer you on.
But if you cannot change it, for your own sanity, embrace it.