Hook up a scanner so you can record what is happening when driving. Like said above could be anything, like a MAP sensor going out, EGR valve, loss of crank sensor signal, loss of fuel or too much fuel (sticky injector). The problem might be outside anything the computer measures, but it is a good place to start ruling out possible issues.
Could also be electrical, like you are loosing power to the PCM, injectors, coils, etc due to a power path or bad ground. Might be a chaffed wire shorting to ground. Believe it or not it could even be dirty battery posts.
My Tacoma truck is doing this right now. It's not throwing any error codes and has good fuel pressure and spark. I'm leaning toward a the timing chain or a valve going bad. total pisser.
Could be anything.