overflow. maximum entry has been generated for batch

SUGGESTED

I have a client whose  Accounts receivable batches have not been posting to GL as there was a post in progress batch. I resolved the batch - closed period but when the next batch is posted, the system is processing all the hanging batches and then throw 'overflow. maximum entry has been generated for batch' Error. I have made sure that all batches in GL are ready to post just to make sure that the system is not trying to append to an existing batch. I have also used AR perioding processing where I have selected only first batch "Not posted" but still getting the same error.

Please assist