Answer here is simple: put your family first.
Tech has managed to convince so many young people that they’re not supposed to have a life outside of work. I fell for this too when I entered tech, working insane overtime, doing “hackathons” where we just worked all weekend, and spending every remaining moment trying to “stay ahead of the curve”.
This is a trap, and it’s not necessary. I worked this way for years until it completely burned me out and I realized that the things that really mattered were being neglected because some tech bros made me feel like work needed to be my life.
Once I rejected this my life simply became better. I put my 40 hours in and I did my best in those hours, but I took back the other 40-50 hours a week I was working and invested it back into my family.
Today my relationship with my wife and kids is better than it had ever been, I am happier and better rested, and my career has skyrocketed as a result. Turns out when you find balance in your life the quality of what you do improves pretty radically, and maybe your attitude and work relationships improve with it.
I’m an EM for a very large corporation today, I make better money and am healthier and happier than I ever was when I was trying to make work consume my every waking moment. I spend a lot of my time with my direct reports today trying to reinforce that they can clock out at the end of the day and it’ll be fine.
Don’t worry about your career, put that time and energy into your family and your friends. Later-in-life you will thank you for it.