Stop object velocity from moving horizontally

I have multiple game objects that bounce around the screen (similar to breakout). Every once in a while the objects start bouncing horizontally non-stop. Is there a way for me to detect when this happens or disable this type of movement completely?

When it collides with the edge and bounces, you can check to see if the y-velocity is close to zero, and if so, either destroy it, or just add a little random value to the y-velocity. That way it will get itself unstuck eventually.