The spaceship Durability is set at 600. Each time after exploring, the spaceship will lose Durability. Once this reaches zero, the spaceship can no longer be used. You can pay APX to repair the spaceship, which will return the Durability to 600.
The rarer the spaceship, the more expensive the Repair fees.