1) Have you pulled your fuel pump to insure IT does not have a wire that is grounding out inside the frame?
2) Have you tested your charging system?
If you're sure all the exterior grounds and wiring are in good order I would start looking into the two systems mention above.
But I'm no expert. I'm merely suggesting you leave no rock unturned.
Also, you mention your CEL lights up. Have you run a diagnostic with either ECMspy or ecmdriod to know why they CEL is lighting up? That would have been step number one, for me, if these running issues were happening to me.