I found the total number of output class of multi-class claasifier is less than number of labels. That’s why I got this error.
As for me:
number of  label:  0-31, 32 classes.
number of output: 0-30, 31 classes.