89 Jeep cherokee

SO here is thing with this jeep

when you drive it will run for awhile then it just shuts off then you just have to pull over and let it cool for awhile. Any ideas of what it could be please help lol

I always suspect the ignition module or the coil. Some auto parts stores can test it for you if you remove it first.