I guess part of it is just that I don't enjoy my work anymore (for a lot of reasons - technical and personal), so I'm not really motivated to optimize my life around being perfectly prepared for it. I mean, as terrible as I feel during work without sleep, I wouldn't have felt much better with sleep, and it will all be over at 5 anyway.
I'd say it's time for you to reassess what you want from life. What look like symptoms are sometimes signals from our subconscious. At 33, you've a chance to change course. Try, for example, the exercises in the book What Color is Your Parachute.