`last_fit()` causing problems

Hi, I am using the Lasso (logistic_regression() ) to classify some text, but after model tuning, it throws me an error message Error in cut.default(seq_along(out), docindex, include.lowest = TRUE, : 'breaks' are not unique all the time. Due to the size of the dataset, it is not possible for making a reproducible example. Anybody knows or has encountered the same problem?

Without having any code or data, it is hard to help. Can you slim it down at all or use a different data set?