You got the meaning perfectly correct.
Мне не жить = я не могу жить, just a little more poetic. "А" in the beginning is sort of "but"...