I don't have a clue for sure, but is it possible that the alternator belt slips when you accelerate and thus the issue?
The "restart" would suggest that power is lost to at least a portion of the system.
Try this: Plug your phone into a charger in cigarette lighter. Let it turn the display off. My phone, if you initiate charge, it will light up the screen. If power is being lost to the cigarette lighter on hard acceleration, it may also lose all power to other places. That might help determine if all power is lost or just one particular system. Of course, I am assuming that the instrument panel did not go bonkers, the idiot lights did not go through a reset like they do when you start the truck, etc.
Will it react the same way if you are sitting in park & neutral and accelerate hard without moving?
My first instinct is a ground issue, but there are guys here with much better understanding of the 1st gen trucks.
I would second the idea of getting some type of scanner.
2015 Canyon SLT, Copper Red, 2WD, CC, SB, V6, Tow, blk leather, factory spray liner, safety pkg, generic roll up bed cover.