Obviously those races are a little longer than 5k park run and somewhat more tiring. From my own experience, the only problem I've experienced in ultra races is painful and colorful urinating, but that comes from dehydration and with regular drinking (at least sipping every now and then) that should be solved.
Did anyone experienced more severe threats for the health and how to avoid any significant problem (apart from running 24h in the first place)?