No extra gas will help you when you have a medical issue once submerged.
As long as both of you understand the risk and comfortable with the decision them who are we (read me) to say no.
I do know that a large % of dive fatalities happen we the diver is alone/separated.
https://www.diversalertnetwork.org/files/Fatalities_Proceedings.pdf
http://d35gjurzz1vdcl.cloudfront.net/ftw-files/Day1/Evidence/2.pdf
I'd recommend everybody watch
this video, both those who agree with solo diving and those against it. It is a lecture by UK based TDI instructor, Mark Powell. He is a highly respected technical diving instructor and author of 'Deco for Divers'.
The lecture, recorded at the London International Dive Show discusses many of the common opinions on solo diving. The concluding messages, which I have paraphrased are:
- Solo diving does carry additional risks, but these can be reduced by undertaking suitable training and following procedures
- If you are not going to solo dive, ensure your buddy pair/team is actually effective
Another thing he looks at is accident statistics. Under analysis, they suggest that a lot of the accidents attributed to solo diving are more likely to be separation issues - bad buddy diving rather than solo diving.
One of the points he discusses is the point you make about having a medical issue. He asks if anybody is in the habit of blacking out and then says if so, diving is probably not for anyone with that condition. He mentions a number of tasks people undertake solo - driving, horse riding, skydiving, climbing, fishing, flying. All of these pose a significant risk if you have a sudden medical issue.
Personally, I occasionally dive solo and the situation the OP describes could be one of them, however, I would never endorse the idea to others. What I always do is have some sort of redundancy. Although a CESA is an available option, it is not the preferred option, which is a normal breathing ascent. The suggestion of taking an extra side slung cylinder if a pony is unavailable is a good idea.