I had some bad battery cables/connection in my 5.2 once. I haven't had a 3.9, but you might check that out. With these modern ECU driven engines, a little voltage inconsistency can cause all sorts of symptoms.