Past paid invoices now randomly showing as unpaid and overdue

Hi, in the last few months about once a week an invoice from the past that was fully paid suddenly shows unpaid and overdue - the payment has been removed from it. Previously it would have been associated with a bank transaction, and that transaction is now gone, weeks later.
Any idea what is causing this problem?
Thanks
1
Comments
Did you ever find a solution? All of my 2021 paid invoices are now showing as overdue/unpaid.
It was the automerge function that was causing the problems for me. Two invoice payments of the same amounts would be combined. I had to reverse the automerges to correct it.