Do you have an identity outside work? Hobbies or some mission or passion that you pursue?
Something that makes you put in active effort - and potentially help derive happiness from.
This activity or whatever it is can be what you do outside work hours to override any bad days with good emotions to sleep and the next day.
I didn't have any of this and it hit struck me during the covid lockdown time, and made me start working towards some aspirations. Now this is super hard, bringing sturcture to this activity, and doing the same boring thing regularly - can be gardening, or playing turf football, or lifting weights.
The struggle with non work hours is that there is no structure or roadmap untill you yourself actively work to plan and enforce it. Whereas for work hours, there is a contract, incentives and social sturctures around in places as checks for you to follow what to do/expect everyday during work hours.