That's a 36 year oldie, seems an electric failure, any component heats up, shorts, stops the motor and once has cooled will start and idle good to miss again shortly. A water pump issue will trigger the temp sensor and lessen the rpm if having one , but should not turn a motor off, an electric...