After driving my 95 Grand jeep lmt for 30 mins it will sometimes die out when foot is not on gas when restarting the RPMs jump up and down hold down the gas for 60 seconds the RPMs shoot up real high?

I would check the TPS Without looking at it that would be my best guess.