Text this: Coherent structural trapping through wave packet dispersion during photoinduced spin state switching