Did the weighting change your stats?
If a certain class is underperforming you could weight it more and trade the other accuracies for this specific class accuracy.
I’m not sure there are other approaches besides manually balancing your class accuracies.