The bad news knocked him all of a heap.
all of a heap
idiomInto a sudden state of collapse or astonishment.
When she heard the sudden announcement, she fell all of a heap and had to sit down.
The unexpected revelation left the seasoned detective all of a heap, forcing him to reconsider everything he thought he knew about the case.