You are going to need to test regulator/rectifier as a diode is probably bad. Definitely internal winding short on stator. Inspect all the insulation for crispy or melted or cracks.
Ohm meter resistance between one wire to the metal core continuity is bad. Then each of the other 3. Then wire to the others. That should be a spec resistance.
A forum community dedicated to Yamaha R6 motorcycle owners and enthusiasts. Come join the discussion about performance, modifications, troubleshooting, maintenance, and more!