It looks like you are reshaping the batch dimension to mini_batch_size * seq_length, which might be the error.
The length of your Dataset will return the number of samples, while you multiply this number with the seq_length for the labels.