Nio Inc.’s losses narrowed in the third quarter as electric-car sales jumped, a reassuring sign for investors who have pushed the Chinese manufacturer’s shares up 10-fold this year.