You might have a corrupt Invoice Template, or just a corrupt transaction.
Try file menu > Utilities, Rebuild the data file. Then, try relinking the payment.
Try changing to a different Invoice template and save.
Try recreating that invoice, link the payment to the new version (same old info and old date) and then delete the broken one.