Stability of electron distributions within the Earth's bow shock