Both my Wife’s Durango and my Jeep do this occasionally. Check your ground on the battery and again on the Engine and PCM grounds. Then if all those are good, check and make sure your tin heat shield near the starter hasn’t been hit by debris and knocked against the starter relay studs. My Jeep is bad about that happening with the thru the forest and over the hills off roading I do