Quantum shock waves in the Heisenberg XY model