I had a similar problem a few months ago. PO301 code. Mine would run fine when cold, but if I turned it off and came back 10 minutes later, misfired like crazy.
It turned out to be the injector slowly leaking around a worn ring.
Not too difficult to do and since you're in there it's a good time to do plugs and wires.
Like others have said, if the CEL starts flashing while you're driving, stop. Bad things happen if you keep hammering on with a misfire.