First of all, I’m very sorry to hear about your situation. My wife has chronic pain and had to give up a career she loved so I have some second hand experience with this. Can you code? If so please email me and I may be able to give you some work paid per deliverable. You can work on your own schedule without pressure. Nothing huge, just enough to get you started. Email in profile
I'm not the OP, but I'm in a somewhat similar situation, and yes I can code, but my useful hours are very limited by chronic fatigue.
Do you think that what you're describing is generalizable ? I mean do you think that there are enough people who could use the kind of work you are describing so that it could benefit the, probably very many of us, who are in the OP's situation, rather than just be a one off for one person ?