ngspice error: too many nodes connected to instance
I think you have a syntax error. When you instantiate a transistor, don't include .model as part of the line, just provide the model name.

M1   VA  VA   0   0 .model nmosfet w=9u l=5u

becomes

M1   VA  VA   0   0 nmosfet w=9u l=5u