An SQLite database is highly resistant to corruption. If an application crash, or an operating-system crash, or even a power failure occurs in the middle of a transaction, the partially written transaction should be automatically rolled back the next time the database file is accessed. The recovery process is fully automatic and does not require any action on the part of the user or the application.
Though SQLite is resistant to database corruption, it is not immune. This document describes the various ways that an SQLite database might go corrupt.
https://sqlite.org/howtocorrupt.html
origin - https://www.pipiscrew.com/2018/03/how-to-corrupt-an-sqlite-database-file/ how-to-corrupt-an-sqlite-database-file