As you can tell from my name, I have experience with this. Initial thought is to follow Kevin's advice to follow the guidance of doctors. I have had 2 cervical herniations and 1 lumbar herniation in the last year. The lumbar was really just an injury from lifting something too heavy and that's doing OK except for occasional tightness. The cervical was diagnosed after MRI as degenerative disc disease C3-6. This means, in lay terms (all I understand), that the discs are losing fluid causing compression of vertebrae causing nerves to get pinched and resulting in spasms and various other shooting pains.
I took a couple of months off training and went to therapy. It at a good therapy clinic in Chicago, Athletico, and was mostly working on mobility and easing the muscles. It was described to me as a chicken-or-the-egg thing: (1) herniation causes shoulder and back muscles to tighten to the point where you can't stand up, (2) tightening makes the neck/disc hurt b/c being held so tightly by neck/shoulder muscles, (3) the only way to loosen muscles is to ease disc pressure, but (4) the disc compression is causing muscles to stay tight.
A couple of weeks of ultrasound and e-stim really loosens the muscles, which loosens the neck, which finally allows the mobility therapy to get things back in place.
On the bright side, I just did my first tri in a year after doing 3+ for 10 years or so, and did it pain free.
Good luck.
__________________________________________
http://thechuckblog.blogspot.com