Had that happen to me but it was after I came out from grocery store on Ford Fusion 2016 Hybrid. Towed it to dealer. Dealer found a million codes but not anything wrong so they reprogrammed computer and tightened all of the electrical connections for the hybrid system. They figure it was a loose connection somewhere. Never happened again. Just a fluke. Sounds similar to your situation.