No, if you suffer from chronic illness that requires medication, you will not be rejected for a Youth mobility visa.
Your approval for a visa will not be rejected on medical grounds. Anyone moving to the UK on a visa, will have to pay an immigration healthcare surcharge (IHS) which will cover your use of the NHS and GP services.