I have been dealing with random, backfires, bad idle, erratic idle, all out stalling and dying on the trails, you name it. This has been going on for the last few years. At first I thought it was my exhaust mod leaning the bike out, so I recently installed a power commander and richend the bike up. I took it trail riding about a month ago, and after about an hour, it started running like shit and the engine light came on. I got code 51 "TPS Voltage High". This is what I eventually found.
I think the wire has been broken for a while, and the insulation finally let go. After I repaired the wire, and re tuned the bike with the power commander, it runs great!