Opening this issue so we can track this bug reported by hyper_ch. Problem is that SQLite by default only allows 999 variables in a query. Arch, Ubuntu and macOS set this limit to 250,000, so this is a non-issue for a lot of OSs/distributions.
Crash log: https://pastebin.com/LZZsWxfE