So I spent some time yesterday and found the same problem I've had in the past, I think.... Anyway, I took off the side cover and pulled out the big white connector that leads to the ground and that hides just above/beside the battery. I started the bike and started moving around wires. I grabbed the wire coming into either side of the white connector and it was getting hot quickly. I pulled the connection apart and cleaned it quite well with a pick, some WD-40, some compressed air, and then some Deoxit. Put it back together and it seemed fine (not getting hot).
The last time my bike was having this sort of trouble (increasingly consistent low idle/dying or high idle) the same thing was happening with the wires going into that white connector getting very hot. When I pulled that connector apart then, all sorts of sand came out of it. So I cleaned it as best I could and shot some dielectric grease into it. Problems were cured, but apparently it needs maintenance.