My fiance's son bought a 2014 F150 with the 5.0L brand new and didn't have any problems with the truck until 190,000 miles when it needed new timing components. He bought an aftermarket timing kit off of Amazon and had a local garage install it. That lasted about 5,000 miles before it had major issues. I told him to go back with all OEM Motorcraft parts and he is now at about 235,000 miles and the truck is going strong.
She has a 2017 F150 with the 5.0L that she bought new and has already had to replace the AC compressor at 32,000 miles because the clutch came apart during a trip. Unfortunately, no warranty so that was an out of pocket repair. Her whole family are die hard Ford fans and won't buy anything else and most of their vehicles have been far from problem free. It's just hit or miss if you are going to get a good one or not.
My Mustang has had little BS problems but nothing major so far but it only has 34,000 miles on it.