It's not an error, it's more bad luck. If there had been another metre or two Phelps would have taken another stroke and gone past, but after that Le Clos would have been ahead. It's impossible for him to plan it so that the strokes are perfectly timed with the length of the pool.