You may already have your answer, but for those that may receive this error:
You must run the integrity check in order to fix this error.
Installing and running the integrity check is too detailed for this format, but the tests in the integrity check will match the transactions to the balance of the General Ledger account.