Emergence and stabilization of transient twisted defect structures in confined achiral liquid crystals at a phase transition