Long-term problems ( disliking a job) can cause a low-grade depression that will eat away at a libidio, or cause 'performance' problems.
A person can become so acquainted with disliking something, that it feels normal. Then its difficult to connect the dots on where the problem stems from.
I`m not a solve-problems-with-drugs kinda gal, though I know some people who definitely need them.
In your case, from what you tell us, I think your body is trying to tell you something. You need to get to the heart of whats troubling you ( you`re already working on that,..good.) and the job situation might be a big factor, as a contributing cause.