KiCad crashes when "exclude_from_bom" or "exclude_from_board" properties are added to a database library

Description

I am using a database library as described in the KiCad Documentation. It is based on an SQLite database with multiple tables and works fine. But as soon as I try to add the "exclude_from_bom" or "exclude_from_board" properties to the database, KiCad crashes without error message when trying to add a symbol to the schematic.

Steps to reproduce

  1. Create a database library as described in the documentation
  2. Add "exclude_from_bom" or "exclude_from_board" properties to this library

KiCad Version

Application: KiCad x64 on x64

Version: 7.0.1, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 5.0.1
	FontConfig 2.14.1
	libcurl/7.83.1-DEV Schannel zlib/1.2.13

Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Mar 11 2023 03:41:46
	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.80.0
	OCC: 7.6.2
	Curl: 7.83.1-DEV
	ngspice: 39
	Compiler: Visual C++ 1934 without C++ ABI

Build settings:
	KICAD_SPICE=ON