Welcome to the garage.
Do the keydance to check for any fault code set: ignition switch off/run three times and leave in run at the third time. Odometer will show the code(s).
It can be many things, but one common item is crank or cam position sensor.
JEEP Grand Cherokee 4.7 Lmtd 2004
HID 8000K in low and fog / Quad Squad member
KYB Gas-a-Just shocks / Pirelli Scorpion ATR 245/65/17 - Transgo reprogramming shiftkit.