"In the long run. we are all dead". But I find it hard not to look at software and think how ephemeral it all is. All those late nights and all that debugging and it has mostly disappeared without a trace within 10-20 years. And that is the stuff that even got used at all. :0(
Don’t stay up late. Work during normal business hours, and don’t stress too hard. Almost none of what most software developers are doing really matters.