NASA is considering ending a mission on board the International Space Station early after an astronaut suffered a medical emergency.