So your question is about the window size of LSTM. Selecting the window size depends on the dataset. For example, in the case of stock data, you may choose a big window size. I saw some papers of stock prediction where the window size is set up to 10030.
Please note that if the big window size means we are working with a complex network. That means the training time also increases. Therefore you need to think about the accuracy and computation complexity of the model when selecting the window size.