How to fix SQLITE_INTERNAL: Internal logic error in SQLite in SQLite | DevErrors