Prince William called for healthcare staff to take "enforced breaks" in their careers to protect their mental health and prevent burnout.