Treating like a physical injury is absolutely the right thing to do. I had a job that took me almost two years to recover from (while at the next one which was fantastic). I almost felt like I lost myself at other and wondered if I wanted to do tech at all. I now see it was just that one place.