Throw sample range check exceptions if the number of samples are larger than an INT