When I had a 1200GS, I carried a spare controller with me.. later on, inmates devised a bypass cable solution to get the bike going again, for far less than the cost of a spare controller.
It's important to learn the symptoms of the fuel pump controller as it's failing so you know what's happening and be prepared. The bypass cable is the simplest "fix" to get you on the road again.
When I had a brand new 2011 F650GS, it would sometimes stall when I'm coming to a stop, as I pull in the clutch.. I wonder if that's related..
It only did it 2 or 3 times in the 2000 km that I owned it.. I attributed this to rider error.. although I couldn't figure out what the error; coming to a stop at a traffic light, I pull in the clutch and it would stall.