Engine dies, but turn the key off and back on it fires right back up
My first thought was ECU overheating.
Had a pinto that did that.
Stock ECUs aren't all that expensive, get one and try it for a while if everything is good buy the expensive orange one and keep the stock as a spare.