As you’ve already explained, the error is most likely raised due to different vocabularies in both datasets.
If you are planning to use both datasets, you should create a common vocabulary. Besides the different number of words or tokens, you would also have to make sure the common words use the same indices.