Your explanation is correct, and the right “fix” depends on your use case.
E.g. if you would like to predict a class for each word, your target should also contain 210 labels.
Since it only contains 21, I’m not sure what your actual use case is and what your prediction represents.