You can avoid generating invoices for specific order statuses by adding them within the Disable for setting, under WooCommerce > PDF Invoices > Documents > Invoice:
Thank you Jordan. That is what I did, but I haven’t yet checked.
I wonder why before April the invoices were not generated even if the canceled status was not included in the list 🤔