If in your dataset you have more than 300 different categories in the target category column, it will cause your classification model training to fail.
Make sure there are less than 300 categories in the target category column and try to build the model again.
If the issue is still not solved, create a ticket here and we'll be happy to help.