Spice circuit Error : Must be an inductor or transmission line
It clearly doesn't understand your trailing comma and whatever newline characters you've used as line continuation in your mosx models, so sees kp= as naming a new component, twice, which for a name starting with k must be an inductor or transmission line.

Simply removing the newline character(s) to allow it to be a single long line will let it work (or at least get rid of that error).

Alternatively if you do want to keep those lines broken, then a '+' in column 1 of the next line will continue the line (according to a SPICE 3 manual, likely to work the same for other flavours of SPICE, if not, RTrelevantM)