Large deviation for mean-field stochastic differential equations with subdifferential operator