fit_resamples and fit error

The x argument to the glm.fit function contains one or more values that are missing, not a number or, possibly, entered as infinite. This is usually a problem with missing values.

See the FAQ: How to do a minimal reproducible example reprex for beginners for how to provide representative data to go along with required libraries and code used to the point that the error arises and more specific suggestions will be possible.