I believe the system we have implemented after advice from users like @ecomsilio was that in this scenario as you cannot modify the original document, you create a new invoice with negative values which offsets the original invoice.
You can then mark this negative invoice as paid to create the documentation you need to “reverse” or “cancel” the invoice.