You'll need to shoot them to avoid having your ship destroyed, but unfortunately they've also broken your targeting system such that you're always aiming at a single fixed point in space.
Position your ship at the correct angle to hit these gravity anomalies, and see how long you can last.