We had something similar when record history was activated for deliveries. There was a bug that updated the available quantity on all deliveries when a good receipt was oked. This caused the database and the text backups to be very big.
The solution was to empty RHistVc manually and of course fix the bug. This unfortunately removes all history so it's a very drastic solution.