Approximately 100 Invoices are with not printed Items on the PDF. That is because the field Billing Duration was populated with text, and got the script to crash and not print the Items.
The invoices with issues are invoices created between the time the field Billing Duration was populated and when it was deleted. The invoices after that don't have issues.
How can I fix these Invoice PDFs ?