Usually when a vintage machine takes off sewing when plugged in, it's because it's plugged in wrong. If there's a double plug that looks like this.
https://www.sewingpartsonline.com/po...RoCVb8QAvD_BwE One plug is for the motor and one plug is for the light. Just unplug them and re-plug them in the opposite positions.