Electrical problems in vehicles now will make the systems go crazy. Like
@SD Rebel said, even a connector that's not perfectly attached can do that, or a single wire not grounded correctly and put the truck in limp mode.
Saying an $XX truck shouldn't have these problems? You have to remember, you're on a forum with ~30,000 users. If every single one of us had the exact same problem, that's less than 5% of 5th gens sold. Even though it seems like we make a lot of noise, we are the very VERY small minority.
For what it's worth, we bought a software package for my department for $2MM (yes, $2 million). After a year of testing, validating, QA, more testing, and then launching guess what happened? It didn't work correctly, and we had to fix it. Hopefully your issue gets resolved quickly, and like the rest of us, your problems are minor from there on out.