After further research, checking for bad grounds, ac compressor, wires, coil pack, I found that a sticking egr valve seems to have been the problem. Sticking open after driving for a bit. I am gonna put more miles on to confirm but I cleaned it and seems to be fine now. Thanks for all the help and if it comes back I will ask more questions. Thanks again everyone.