I understand the obsession with a project. Especially when it should work but it isn't. I have been known when we had the Sputtering shop to not leave the shop for several days working issues out. Have gone 48 hours without any sleep. Of course I was in my early 50's when I did this. Was putting in an average of 80 hours per week for three years while we built up our shop and business, I did this Monday through Friday. Saturday and Sunday I did not work. But not like I did much more than sleep. Get up, get coffee, start to watch some TV, wake up start to watch something else, wake up and ..... well you get the drift.
Ended up pushing an angina attach which lead to two stents in my heart. Sometimes we get lucky and we have loved ones that can save us from ourselves. Thankfully my wife put her foot down. Thankfully your wife did the same.
Take care and God Bless, and don't worry, the G-Code will be there when you get around to it. May even have one of those A hah moments when you get back.