If the CEL is flashing at times, that is a misfire on one or more cylinders.
This could also be felt as "chugging"
Misfiring is caused by lack of fuel, spark, or compression.
As another option, perhaps the fuel pump sock is clogged causing jerking at WOT..
Search in to both misfiring, and the fuel pump becoming clogged
Ray