Being in pain for days, losing sleep, not knowing when things will get better, makes it so much harder to cope with normal things - never mind the extreme stress you've had at work lately. Put your own recovery at the top of your priority list and try to leave the decisions about work until later, if you can.
Being miserable full-time isn't a workable long-term situation. If you can get FMLA and take some time to recover, it may give you breathing room to consider what direction to take re your job. But get feeling better first. Sending hugs.