I've never had SQLite corrupt a database file, and given how widely it's used literally everywhere without reports of corruption, and the incredibly extensive testing methodology they use to ensure that, your issues seem very unlikely to have been SQLite's fault.
To be fair, there are numerous ways to misuse it. Depending on how and where you are using SQLite, you have to know things about WAL and syncing etc.