It's not. On the contrary, the sqlite3 from your OS repos does not follow the sqlite maintainers which recommend to compile the binary with a flag that always respects FOREIGN KEY constraints.
Totally different issue, but same reason for failing with a lot more information about the foreign key constrains. Start reading the thread from here: