My 2011 ve v6 calais is doing exactly the same thing , exactly as you describe it , i did the same thing twice and the same twicw.
Down to the shops fine , 30 min in car park , then the car lost power and got a engine warning at the exact same corner .
I think the heat build up in the engine...