The phase distribution in a Bose-Einstein condensate can realize various topological states classified by distinct winding numbers. While states with different winding numbers are topologically protected in the linear Schrödinger equation, when nonlinearities are introduced, violations of the topological protection can occur, leading to unwinding. Exciton-polariton condensates constitute a nonlinear open-dissipative system that is well suited to studying such physics. Here we show that a one-dimensional array of exciton-polariton condensates displays a spontaneous phase unwinding from a π- to zero-state. We clarify that this collective mode transition is caused by the combined effect of nonlinearity and topological defects in the condensates. While the mode-switching phenomenon observed in our previous experiment was interpreted as the single-particle mode competition, we offer an alternative explanation in terms the collective phase unwinding and find its evidence by reanalyzing the experimental data. Our results open a route towards active control of the mode switching by manipulating the topological defects in prospective quantum polaritonic devices.