Topological phase transitions driven by non-Hermiticity in quantum spin Hall insulators