Impact of ion source stability for a medical accelerator