It’s about knowing when to take a break. That’s the most important part.
I like to take walks and not touch my phone on that walk. I feel refreshed and energised after doing this.
Allowing myself to take some time off has improved the way i work and feel.
I like to use the pomodoro technique at times. 25 minutes of undistracted work with 5 minute break in between the next 25 minutes.