Please read this topic on how to interpret output shapes in a time series problem and fix your model.