The star did not disclose the cause of his condition, but fans speculated it could be Bell's Palsy, a nerve condition that causes paralysis to part of the face, or Ramsay Hunt Syndrome, in which a shingles outbreak affects the facial nerve near the ear, and cause hearing issues such as tinnitus.
Both conditions are usually temporary, and can be triggered by infections or stress.
Justin Bieber cancelled several dates on his 2022 world tour after contracting Ramsay Hunt Syndrome.
In a video, he showed fans that he was unable to blink his right eye and, although the symptoms persisted for some time, he recovered fully.
Musician and TV presenter Tulisa Contostavlos also has recurring instances of Bell's Palsy, which developed after she suffered nerve damage in a horse riding accident.
Speaking in 2020, she said that an attack could last up to seven months if she didn't take steroids within the first 72 hours.
Before his hospital visit, Lil Nas X had been promoting his eight-track EP Days Before Dreamboy, which previews the highly anticipated follow-up to his 2021 debut album, Montero.
Speaking to Atlanta radio station Hot 107.9 last month, he said the album had had a painful gestation.
"At the top of 2024... I feel like I was very lost and trying to cater to everybody except myself," he said.
The Old Town Road rapper said he had started trying to cater to what he thought "the world wanted from me" - including the need "to be outrageous all the time".
"But it's like, no, sometimes I can just be on my chill [side]," he added.
Speaking at last month's GLAAD Awards, the star added that he'd recently turned down the opportunity to collaborate with Taylor Swift.
"We were working on something," he told E! News on the red carpet.
"She offered to let me try a verse on something, but I couldn't catch a vibe for it, so it didn't happen."