I had that happen to me back in November in my 2010 F150.. Mine shut off once, restarted and I assumed it might be trash in fuel line (I was stopping and starting and turning around on mountain roads). It stopped again about 5 minutes later so I called for help. I was miles from campground in NGA mountains and several hundred miles from home. I got a tow to local Dealer as I didn't want that happening with TT attached.
Turned out there was a service bulletin for some type wiring short between fuel pump and computer controls. Only took them a couple of hours to diagnose and repair (thank goodness). I was kinda bummed that my local dealer had not mentioned the service bulletin when I had the oil changed/basic service done just a week before.