Of all the things that we might expect to see go wrong; the Ford platform probably doesn't even get on the radar screen...
Sorry to hear that you're having this kind of issue...
Error codes can pop up for the strangest reasons:
a bad sensor
a poor connection
a error in the computerized communications...
And even a busted part!
If you can clear it: do so, and see if it returns.
But note the date, time and mileages of each and every occurrence!
Good luck; let us know what happens next!