I would say credit noting the invoice with the wrong payment would be the easiest way to solve this.
The only way to fully unlock those entries would be to rollback the VAT return, but you may end up with different values on the return when you reapply if any payments were subsequently entered to that period, it’s a bit risky!