I'm so sorry you're in the struggling space, Punk. If it helps, you're not alone. We all park here now and again, wishing like hell we were anywhere else.
Okay, as best as I can understand, this is what happened. You worked yourself into the ground. The life-threatening illness may have had other causes, too (mostly I've found that large problems have multiple origins), but it certainly didn't help to overwork your body. I don't know the ramifications of your condition, if it's something that's bam! fixed and gone (like appendicitis) or if it will be something you have to learn to live with (like diabetes).
We need our bodies to work. Without that, we're dead or at least severely curtailed. I strongly suggest taking a long look at your physical health. As a disclaimer, I can make general recommendations, but I think you should run at least some of this stuff by your doctor. Going on long walks, for instance, is appropriate for me. It may not be for you, at least at this stage of your recovery.
So I'd recommend looking at your overall physical health patterns first--eating regularly, eating well (generally, lots of veggies and cutting way back on prepackaged food), taking vitamins and supplements, following a regular sleep schedule, and exercising appropriately. Yeah, okay, it's basic and it's boring, but we can all get better here.
Then there are mental health patterns. Are you beating yourself up or otherwise unnecessarily pressuring yourself? As in: Oh, no--I can't be a real writer because I have so little to show for it. If I don't see some kind of real progress this year, I need to just quit writing because I'm just not good enough, etc.
We all do this crap sometimes, and it's not good for us. If you struggle with this, too, I'd suggest a redirect. As a metaphor, if you're training a dog and they engage in a behavior that's uh, changeworthy, the easiest way to solve that is to have them engage in a different, incompatible behavior. Our brains (and dogs') process positives better than negatives.
For example, I have a German shepherd puppy named Tuni who's four-and-a-half months old. Two months ago she started engaging in overly aggressive behavior toward dogs who weren't in her pack. Even though I've got a psychology degree, I didn't know how to cope with this. But Ashley, the dog trainer I went to see, was very methodical about it. When Tuni barks aggressively at other dogs, she has to lie down or at least sit. It's a less aggressive posture, and it gets her doing something I can reward her for. In essence, it's an incompatible behavior with the one we're trying to change.
Now applying that concept to mental behavior, in my case, I have a problem with putting too much mental energy into people I love who've hurt me, and it's no longer productive for me to engage with them, at least at this time. So instead of having mental arguments with them, when I catch myself doing that, I say a rosary. Keeps my mind busy with other words, and I'm meditating on images that have real meaning to me. I've noticed a real decrease in that problematic mental behavior as a result, and I feel soooo much better.
If you
are beating yourself up, consider trying to find a mental activity that's incompatible with that. I don't know if prayer is a significant part of your life--maybe it wouldn't be appropriate for you--but there are other things you can do. Puzzles, movies, research on supplements that may prevent a recurrence of your physical breakdown...anything that gets your mind off something which can only harm you.
Okay, I've addressed (briefly) overall physical and mental health. Then there are things that may be specific to you. I'm just going to throw things out there. I can't claim to know what's exactly best for you or what's going on in your life. These are merely guesses, possible avenues for you to explore.
You almost died. You know this, and it's got to be scary. C'mon, most of us have stuff we still want to do. Maybe at some subconscious level, you're just being cautious--and that's not entirely inappropriate. I gave up flying, which I loved, because it almost killed me a couple times. I miss it, but I'm way more alive than John Denver. So maybe it's your mind and body combining to put the breaks on something that could cause you harm. Maybe you're not ready to dive back in yet. Or maybe it's just a reasonable fear response.
In either case, I'd recommend setting limits on writing/editing. X number of words or pages, and not very high to start. Pick something that's super-achievable. Write 300 words a day for the next week or edit five pages. I'm just throwing this out as an example--you will be a better judge of what's appropriate for you.
It's good in a couple ways. If this is just a fear response, keeping the commitment small is a great way to work through this. If you haven't quite recovered, starting by dipping your toes in the shallow end is a more appropriate way to get back in shape, as it were. And it keeps you from beating yourself up because you aren't doing anything. (I don't know about you, but sometimes I think I'm my own worst enemy.)
Anyway, this is all that's coming to me for now. I hope something here helps.