i would start by checking you intake gaskets
then i would probably check fuel quality, pressure, volume
if you do not find the problem,
have a scan tool at all times and check codes while the check engine light is flashing or check codes with a better scanner
i would not drive the truck while it is experiencing this fault with the exception of 1)to find out whats causing it 2)verify fix.
the reason for not driving it is 1) flashing SES light means you are knowingly killing your cats, 2) it might leave you stranded somewhere..... maybe