crash after selecting particular spice library file

Description

model THS3491.lib.zip was correctly used before simulation model editor rework. Now KiCad crashes after selecting this .lib file

Steps to reproduce

  1. choose any symbol in schematics, open properties dialog, press "simulation model" button.
  2. In simulation model dialog select "SPICE model from file", choose attached file.

KiCad Version

Application: KiCad Schematic Editor

Version: (6.99.0-4391-g59501dfa15), release build

Libraries:
	wxWidgets 3.0.5
	FreeType 2.11.1
	HarfBuzz 2.7.4
	FontConfig 2.13.1

Platform: Linux 5.15.0-48-generic x86_64, 64 bit, Little endian, wxGTK, cinnamon, x11

	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.1
	Curl: 7.81.0
	ngspice: 37+
	Compiler: GCC 11.3.0 with C++ ABI 1016

Build settings:
	KICAD_SPICE=ON