

If your battery is at 12.4V resting, then it’s no good. Charge the battery fully, then let it rest for 24 hours. The voltage should be around 12.8. The lower the resting voltage, the worse the battery’s condition, and the more it will tax your charging system.

Check that each leg of the stator is good by checking that each yellow wire has about 0.3 - 0.4 ohms resistance against the other yellow wires, and that none of the yellow wires have continuity to ground. If one leg of your stator goes bad, it can overtax the remaining leg(s).
Corrosion causes resistance, which creates heat and lower voltage. Are just the connectors corroded, or are the wires also corroded?
To clean connectors, I use DeOxit. Spray it on, then plug and unplug the connector a few times. If that’s not enough, I use a soft, brass bristle brush. If that’s not enough to clean the connector to gleaming, then I replace the connector.
Incidentally, it’s common for motorcycles to barely charge at idle. You often don’t hit a 13.2 - 14.4V cutoff until a few thousand RPM.