check engine light and engine fail safe mode
these lights come on-truck shuts down but you are able to restart immediatly. Have ran on scanner-cleared codes numerous times-replaced mass airflow sensor. Light return.
take back to dealer and let a mechanic drive for awhile they may need to keep for a day or too most dealers have loan a car.
Agreed, this sounds like something with the PCM or an internal fault in the PCM itself.