Electronic engine control component(s) failing due to heat, probably. Rather than throwing components at it, identification of the problem is accomplished with a live engine analyzer when the engine is not responding.
Looking for a Used F-150 in your area?
CarGurus has 212,354 nationwide F-150 listings starting at $1,000.
Search Ford F-150 Questions
Ford F-150 Experts