The main character was an orphan and was regarded as a good-for-nothing in the interstellar world. However, through alchemy and wisdom, he became an outstanding mathematician. He was connected to the young star beast and experienced all kinds of challenges and adventures. Although it did not have the exact same plot as the novel mentioned in the question, it was related to the male protagonist's identity and rebirth. At the same time, it was also a sci-fi-interstellar novel. I hope you like my recommendation.