I hear you on the marriage piece. My wife was brutally unsupportive during my burnout and I’m just waiting for my kids to be grown up before I leave.
I would do the same thing you are. Leave once they're into college or otherwise move out. A spouse can think you're just some lazy, but it's harder than ever to maintain employment and being a developer is actually more stressful, not less. It always is for me, I'm pushed pretty hard. It's definitely not loving. I told my wife who has been struggling that we'll use all our resources to make her comfortable. To quit her job or whatever changes we need to make to where we live and the rest. My condolences to you, I think it's impossible to know what type of person you're with until you're in certain situations like that.