Error code help. Check engine light on and off

ok I have read a few write ups but looking for my machine specifically. My 2010 550 xp is throwing 520194 3 and the engine goes into limp home. It doesnt always do it, seems to come and goes as it wants too over the last 2 outings. I seen where is saying voltage too high, battery shows proper reading on my meter. Dealer seemed clueless when I spoke with them on the phone. I know there might be something up with the TPS, voltage adjustment, dirty throttle body or possibly throttle cable. Even at idle sometimes the light will come on then go off. Anyone have any advise where to start or what worked for them on the 550 sportsman xp? Thanks