I have an 07 4.6 that has exhibited the exact same issue 3 times over the last 4 years. Each time it starts with a slight jerking and if I get on the throttle I first get a check engine light and then I get a flashing check engine light. What is frustrating is that each time this has happened I have tracked it over multiple days and I rarely get a code even after the CEL has been flashing. In most case I get the jerking without any light. When I do get a light, flashing or not, it always goes off immediately after, and when I check the codes there are, "No Current Codes" and "No Pending Codes" 97% of the time and the 2 times I did get a code they were pending and as I said before the light has never stayed on. The first time was a month after I bought it in 2015 and after several days of checking it I got a P0300 and a P0308. I was happy I finally got a code but I was never able to reproduce the code even thought the jerking continued., so I replaced the plugs and the #8 coil. I had roughly 80,000 miles at the time. This happened again in 2018 except I never got a code even though I got the lights, which again did not stay on. Since I could not get a code and didn't have the money to replace all the coil packs I decided to monitor the misfire log and sure enough I had numerous misfires all on cyl 1 this time. In this instance I only replaced the coil and not the plugs. Here we are a year later and it's doing it again. Same symptoms this time except the CEL has flashed on 2 different days and I only got a code out of it on one of those 2 days. P0300, Random multiple misfire. Frustrating to say the least but I have basically figured out how to deal with it. This time I checked the misfires again and it's cylinders 5 and 6. The numbers are much lower but they are definitely there.
So I would agree that it's most likely coil related and not TPS or Mass Air related. If you do decide to replace the plugs, read up, be patient and DON'T BREAK THEM OFF when replacing them. At this point you have 2 choices the way I see it. You can pay to have the plugs replaced or you can replace them yourself. If you decide to replace them yourself, I have a couple of tips. 1. If you are superstitious I would suggest you buy one of the Broken Spark Plug Extraction tool kits(there are a couple of choices) ahead of time, set it on the passenger seat and tell your truck that there is no point in fighting because you already have the tool. 2.if you are just plain unlucky, I would get the the kit and have it waiting just in case, so you don't have to leave again, to get the tool. If you don't like these suggestions or just don't believe breaking the plugs is true then you could throw all caution into the wind, forge ahead and rip those plugs right out. Either way, good luck, and if you do read the recommendations for plug removal that are everywhere from a TSB, to google to Youtube then I would use Marine Tune when changing the plugs. I did mine, and I used Marine Tune and everything went great, none broke. BTW, I'm not superstitious but I have really bad luck so I bought the extraction tool, put it on my seat, and told my truck. To this day it sits in my tool box and looks like the day I bought it.
Now if I could just figure out that odd intermittent howling I get during cold weather...I digress