a better solution than throwing exception would be to just do multiple calls to batchInsert by splitting the rows to batches that are below the max amount.