Question about Sb bug.

Sometimes I have encountered a bug where when you stand on a surface in space with or without gravity, you get thrown around at high speeds. What causes that? and can it be prevented?