Do not let your job become a part of your identity.
I work just as hard at my new job as I did at my last one, but in my mind, they're just a client I'm choosing to offer services to at this time. I've made many good friends through work over the years, but now my loyalty to my friends is independent of my loyalty to the companies for which we work. I used to use the demonym of my place of work to tell people about myself; now I describe myself by my hobbies, my beliefs, and my aspirations.
Did that solve everything? Of course not. Late-stage capitalism is still riddled with bullshit. But I do sleep better at night.