Why would it be sexist to have men's only spaces for the purposes of men's mental health?
But the point of the men-only ones is to allow men to socialize with other men and talk about problems that affect them only or problems they don't feel comfortable talking about in a mixed setting.
It's not sexist to want men only spaces, just like women only gyms and salons are not sexist.