Need help to fix sales invoice submit time out error

I did below steps to make sales invoices

  1. create naming series
  2. make POS profile to that naming series
  3. select series on Sales invoice and make it as Draft.

After some times I forgot to submit those sales invoices and delete the naming series on set up section.

Then create new naming series to sales invoices and make sales invoices based on new series.

Now I a getting time out ,when I try to submit those previous invoices with old naming series.

Then I found that naming series deleted. So I created that naming series on set up and try to submit.

But unfortunately , the time out error remain same.

But the new naming series works fine for new sales invoices and submit without and delay and time out.

How to submit those old naming series invoices?