I have no idea what causes this error.Can you guide how to remove this error?
As splitting a database is usually a one-off operation, I would follow the line of suggestions by @CJ_London starting in #3.
The errors you encountered along the way, indicate there could be something wrong (corruption) with your database file.