The system SQLite is version 3.7.17 from 2013, which, as it turns out, is old and busted and can cause problems. Certainly did for me :/
Any chance you could update to something a bit more modern?
Seems like you may have to reinstall Python as well: https://stackoverflow.com/questions/57532341/python-3-7-4-not-using-sqlite-3-29-0