The solution seems obvious. Work completely through the night, then collapse from exhaustion at your convenience! The trick is scoping out your projects appropriately so that you can finish them and catch up on sleep before going completely insane. :-)
Hell, if you do it right, you can watch decades of your life just slip away! amazing!
I've done this a couple of times --- thankfully not for decades. But it's remarkable how much being a code monkey is timeless. You look up and months have passed.
Did that for several years. Basically a 36 hour schedule. Was awesome.
Having a family put a stop to that.
My imposter syndrome is lessened by reading this and so many other comments that feel familiar. (Unless I'm up so late because I'm not 10x? Oh no.)