ML Models: How to handle categorical feature with over 1000 unique values
If necessary, there are other methods of encoding categorical features:


Label encoding (might need some judgement regarding implied ordering)
Target encoding
Hashing trick


A handy python package is Category Encoders: link

I would suggest first investigating if your model needs categorical variables to be encoded - lightgbm and catboost are examples of ML algorithms which support categorical variables.