Sounds more like a ECM calibration issue. Take it to dealer and keep complaining. Make them hook up to IDS and flash ECM and TCM to latest files.
Do you have Forscan or some type of tuner you can read the strategies you are on now? I can tell you if they are old.
Do you know any codes it was throwing?
2018 Ford F-150 King Ranch 3.0L Power Stroke 4x4 | Icon 2.5 Front & 2.0 Rear, Toyo AT II 295/60R20, 3" ProComp Rear Block, S&B Dry CAI, LineX & BakFlip MX4, BuiltRight Seat Release | ForScan Mods: Disable Double Honk, 2x Panic, DPF Full %, Digital Temps Above Gauges, A.S.S Disabled