Mine didn't throw up a code.I'm just throwing it out there as when I owned my 350z I had a not dissimilar issue and it turned out to be the coil pack. Don't want to send you on a wild goose chase as I am no mechanic, just sharing personal experience. Hope you get to the bottom of it soon.