If your car is an Energi model, this sounds exactly like what just happened to my 2016. The issue is chafing of the high voltage battery harness which throws a fault error that can shut down the car with little or no warning, potentially very dangerous. The fix is covered under Ford TSB 17-0015. Have the dealer look at that bulletin, which you can also find online. This should be a recall item, not just a TSB. File a complaint with NHTSA.