Hi
Think I had something similar a month ago.
In Sales invoice General window, go to show column and check Quantity is listed.
Then delete any row for which there is a quantity listed but for which there is no corresponding ledger entry.
Hope this helps
Fig