Problem with LTspice model

I have a problem with a wuerth LTspice model for a current sense transformer. The error:

Error on line 46 or its substitute:
l.xt1.l1 net-_i1-pad2_ 0   4.510000000000000e-06     rser=    2.200000000000000e-04     cpar=    6.469999999999999e-06   
unknown parameter (rser)

Kicad found the proper subcircuit from the lib file:

.subckt 7492551000 P+ P- S+ S-
.param N=1000
.param Lsec=4.51H
.param Lleaks=503mH
.param DCRs=75R
.param DCRp=0.22m
.param Cps=12.94pF
.param Lpri={Lsec/N/N}
.param coupling=sqrt(1-Lleaks/Lsec)
 
L1 P+ P- {Lpri} Rser={DCRp} Cpar={Cps*N*N*0.5}
L2 S+ S- {Lsec} Rser={DCRs} Cpar={Cps*0.5}
K1 L1 L2 {coupling}
.ends

It seems to me ngspice cannot handle the resistor and capacitor in the basic inductor.

What is a proper workaround without re-editing every entry in the library?

Thanks

ngspice does not support instanstance parameters RSER and CPAR. So replace the 2 entries shown above by

C1 P+ P- {Cps*N*N*0.5}
R1 P+ PP {DCRp}
L1 PP P- {Lpri}
C2 S+ S- {Cps*0.5}
R2 S+ SS {DCRs}
L2 SS S- {Lsec}

Holger, Thanks for the answer