Could you have been low on fuel bb? Fuel line went dry on the steep hill? Recovered when you turned around.
Beages those particular codes won't tell you nothing on that bike, needs to be hooked up to the dealer diagnostic stuff to get the codes that matter, hate saying that but yeah, get them to have a look, it'll most likely be an intermittent wiring fault, bastard of a thing to track down.