Not able to create Sales Invoice

Batch with an expiry date is created. Ex: Manufacturing date = 16th Feb and Expiry date = 18th Feb

Issue I am facing:
Delivery Note created on 17th Feb. Due to some reason, Sales Invoice was not created.

When I am trying to create Sales Invoice on 20th Feb, I am getting the below error:

Pls help in resolving this.