Always no problem to leave US, the problem can only arise when you want to come to US again.
If the overstay is due to doctor's order, that is a good reason. Safe-keep doctor's letter as the evidence for the next visa interview.
If the overstay is due to doctor's order, that is a good reason. Safe-keep doctor's letter as the evidence for the next visa interview.