In my 20-Year experience, the ultimate tragedy has generally occurred on the bike, rather than the water or run...most caused by mechanical problems at high speed.
you sign up for ironman events 1 year in advance...and mentally/physically prepare much earlier, not a weekend warrior winging it.