‘For there must be also heresies’, and that words ‘heresies’ has come to mean wrong teaching, and it is about that certainly. But the Greek refers to choosing parties.
It is a happy state and condition when a church is not hurt by factions and divisions. Churches must pray to God that he will preserve that peaceful and happy condition, because our human nature can easily spoil things. But when there are troubles in churches it is very often the purpose of God to permit them, in order that the good may be seen as opposed to the phonies and the self-seeking people, who will usually in due course run off.