Observation of a phase transition within the domain walls of ferromagnetic Co3Sn2S2