1997 grand Cherokee limited jeep cuts off without warning why?

Check the PCM/Power Control Module/Computer. I had a 98 do the same thing to me. The PCM will be hot to the touch when the problem occurs.

The PCM is located on the passenger side firewall in the motor compartment, behind your radiator overflow bottle.