Need help another electrical issue

I have a 2004 canam outlander 400 max xt and I’m having issue after issue with electrical. Hook up to a charger runs great for 10 min dies abd shuts down backfires and boom dead battery. Issue was voltage regulator just installed new one with relocate and new harness replaced battery went for a ride and same thing dead battey and dies. Also my dash isn’t working, no speedo no trip meter but lights on dash all work. Randomly light up different lights everytime I turn it on. Putting that aside hoping it’s just screwed the electrical issue is what scares me. All that’s left to replace is a stator do you guys and gals think I’m into a stator??? What else could it possibly be…