Role of unit cell defects in terahertz topological ring resonators