Later he and de Sitter discovered that the multiplier could be set to zero (and consequently omitted from the field equations) while allowing an arbitrarily long -- eternal, even -- expansion of a hot big bang universe, even for arbitrarily large average matter-densities.
It wasn't until decades after his death that better observations demanded the return of the small positive cosmological constant. This time it wasn't to prevent total collapse, but rather to account for the gravitational drag of early galaxy clusters on each other not slowing the Einstein-de Sitter expansion (and even later speeding the expansion up).
The cosmological constant term was always a free parameter. It's just that there was no point in writing it down if it was measured as zero.
Finally, our current models put it back in to explain the accelerated expansion of the universe.
Einstein definitely made a mistake but his mistake was not adding the cosmological constant, it was adding it for the wrong reasons. He should have added it as a free parameter to be fitted against empirical data.