Most common fault with this symptom that I have seen are rodent damage to the cylinder head temp sensor in the engine valley under the intake manifold. Mice LOVE to nest in there and chew up the wiring. Look for mouse droppings and nesting material.
RepairPal Certified shops can diagnose and repair your 2013 Ford F-150. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.