"Invalid reference to Customer" tends to Customer is not existing or or it may be inactive at Quickbooks.
While creating an invoice, the transaction is always refers to the Customer. So check whether respective customer is existing in QB or not.
Please provide us your information to better assist you.
The form is not valid.