And I always tell folks that if you can afford to take a few weeks/months off, do take it out and travel. It doesn't need to be a fancy, expensive vacation to the other side of the globe. But as long as it's forcing you into an environment that is unfamiliar, where things like food, culture and even basic human interactions are so different to what you are familiar with, you'll realise how quickly your energies get replenished and the problems/envy/lack of ambition will all start feeling small in the rear view mirror.
As the saying goes, it's just a bad day, not a bad life. :)
Mine is an autistic kids. This isn't really good advice, it's basically an empty platitude.
Find meaning in your life is actually what the 2 of you are telling him. Traveling is super overrated and is not an ends to itself.
Without meaning, there isn't much point to life.
edit: A sabbatical may be a good idea in the OP's situation and need not always mean travel. Could also be a pursuit of arts, further his interest in physics etc.
This will make you understand yourself better, especially when noone you know is around you judging you.
Don't be the person that is scared to travel by itself, if you're always with people you'll never know yourself and right now you need some time to think about your life.
Keep in mind traveling by yourself give you more opportunity to meet people and get closer to the culture, moreover if you go to Hostel you'll meet many people doing the same and you can tag along.
A change in environment is what you need to change all your Toxic Routine habits you're stuck into.
Let's assume you do a 2 weeks trek to Everest Base Camp (super easy), you'll sure won't care about any IT crap and you'll be damn right, this may help you realise life is about doing the things you like, work to live and not the opposite.
If you're in no position to travel, try to get out of your confort zone, break your routine.