> devoted my life to for years
This is the problem (not the actual problem, but the one you can control). Your job isn't your life. I used to think/act this way. Then I was eliminated in a rather soulless manner myself. I realized it was an abusive relationship. I had actual PTSD for a couple of years. I no longer define myself by anything that is so transactional. Business relationships are just that. I am happier, I make more money at job, and I've got several things prioritized over work that fulfill me.