This issue has been fixed (upstream) in version 3.27.1 of the SQLite core library,
which is now on trunk.