Problem
You have a membership assigned to the wrong Bill To customer, and the invoices for billing were generated on the wrong customer. You now need to clear the invoices with open balances but they only have tasks on them.
Solution
Go to the customer with the incorrect membership and invoices.
Cancel the membership for that customer.
Add adjustment invoices for invoices with open balances.
On the adjustment invoices, add a negative task with the same amount as the open balances.
Save the adjustment invoices.
The invoices should now have clear balances.