Friend had a cobra appear in his chicken run and told me his chickens all got into one corner and started piling up on each other in the corner. They had space to get away but seemed to want to stick together.
Maybe that's what they do when really scared.
Edit.
Seems it's called piling??