It seems like the customer GSTIN and billing Pincode is missing while creating E-invoice.
To avoid above error message,
Step 1: Click on “Edit” option shown under the “Buyer Details” on E-invoice creation page.
Step 2: Add customer GST number with billing address.
The billing address must include the Address line 1, Pincode, City and State.
Also, note that E-invoice can only be created for B2B invoices and not for B2C invoices.