This is more than likely a throttle body failure, and the only fix is to replace the TB. I have a 2011 Edge with the 3.5L V6, and had the same thing happen to it. It's a prominent problem in the Edge, and other Ford vehicles that share the same TB. See this discussion thread:
http://www.fordedgeforum.com/topic/12726-throttle-body-service-or-failure/. It's very difficult for the techs to troubleshoot, because when it happens to you on the road, it throws a CEL and codes, but as soon as you turn the vehicle on/off, everything resets itself to normal and the codes are lost. So unless you leave everything as is when it happens and have the truck towed to the dealer, they'll never see the CEL codes. So talk to your service adviser and have them check into TSB's for throttle body failure/replacement, because I believe there are some TSB's out there for this fault. Unfortunately, if your 3/36 B2B warranty is expired, the repairs are on you, because the TB isn't covered under the Powertrain Warranty.
If you're at all mechanically inclined, it's very easy to replace. First, check your TB to see if you have the following part number: T4Z9E926-A. This is the defective TB. Ford has issued a replacement for it with part number T4Z9E926-
B. I bought a brand new one on eBay for about $120 and replaced it myself. I've heard folks say that it's cost them anywhere from $300-$600 to have it replaced at the dealer, so I'm glad I was able to save myself a ton of money on this repair. I've got almost 20,000 miles on the new TB on the Edge, and the problem hasn't returned; so I'm confident that this fixed the problem.