Handle invalid durations