Yeah, hypothetically impossible question, so rather impossible to answer. Most of the ideas* of space ships travelling extremely quickly involve worm holes and the like, which you could guess to be “short cuts” through different dimensions. You’d hope there’s nothing in those other dimensions for you to crash into.
Although if you could create two huge charged fields around the spaceship, so when items pass through the first one they get positively charged, and then when they encounter the second one they get repelled, that would remove a lot of items in the way. Bigger stuff you’d have to have some sort of radar type gizmo, and steer around them, or blast them out of your way with your ultra death canon.
One of the things that I’ve thought about in star wars is the laser guns. Lasers travel at the speed of light right? So when someone shoots you with a laser, you won’t see the laser until it hits you, as the light travelling from it is going at the same speed. Therefore it’s impossible to react to it and casually bat it away in the direction of the nearest droid.
*From like films and novels and stuff, not from science.