Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing