Without the full code, it’s difficult to pinpoint the exact problem. From what I can see, there are several issues that strike me as odd:

The error is about the batch size not the sequence length. Your example sequences has 9 values. Do you use batches for training and what is the shape?

LSTM has the setting batch_first=True/False (default: False). Depending on the chosen value, you have to make sure that your batch has the right shape. I assume that you have an Embedding layer as well.
Your values in your example tensor are very high. Do you really have a vocabulary of size 1,4 million words and more. how did you create your word2index. What us the shape of your embedding layer?