Added ValueError when replacement=False and the state has too few conformations to sample.