This appears to be the same issue as this post
The data that you are using contains factor columns and xgboost does not allow for non-numeric predictors (unlike almost every other tree-based model). There is some documentation here.
Use a recipe with step_dummy()
to solve this. An easy way to do this is via the usemodels
package (if you are unfamiliar with recipes).