Weights are represented in double floating-point format. If the ratio of maximal over minimal weight is equal or larger to ~ 1e16, then rounding errors become much more important. As a result, the SamplableSet might try to access a container with empty elements.
This can also happen if the ratio is smaller than 1e16, but if elements are inserted and removed a lot.