Your fish may also feel physically crowded in an overstocked tank, which can result in them pacing the glass. Fish need space to swim, and when a tank is crammed with other fish or decorations it can be stressful for them. Unlike in the wild, there is nowhere for them to go if they don't like their current location.