You really need to wire the inverter direct to the motor and not through any of the lathe switchgear.
ive converted a couple of L5’s to run from inverters, and in each case had to dig the star point out of the motor.
so unless yours has had the motor swapped at some time to a star/delta motor, you will need to do the same.