Strong anomaly and phases of chiral gauge theories