You replace the failed cell
You replace the failed cell or cells (usually only one or two). Then you cycle all of the cells through a series of discharge/charge cycles (maybe two to four times) to even out the cell capacities. We currently own three Prius, have owned a total of five. Once we have had to replace two cells on a battery. No other battery problems.