Preparing multiple training time-series for Keras LSTM regression model training
The standard way to treat unequal lengths is to pad them.

However, if you have very long sequences, it is often handled by splitting them into short sequences - in this case, it is up to you, what sequence length to choose.

Then you will have to decide, whether you need stateful LSTM or no, but it is out of the scope of this question.