Onycholysishttps://en.wikipedia.org/wiki/Onycholysis
Onycholysis is a common medical condition characterized by the painless detachment of the nail from the nail bed.

Onycholysis can occur in many conditions, including psoriasis. In thyrotoxicosis, it is thought to be due to sympathetic overactivity. It may also be seen in infections or trauma.

Treatment
There was a case report that drinking carrot juice daily could treat onycholysis.

  • A 34-year-old male with ring and little fingers. It is not a fungal infection.
  • Typical Onycholysis ― A simple treatment method consists of taking carotene-rich food, such as carrot juice, for patients with chronic idiopathic onychodystrophy.
References Nail pitting and onycholysis 27052048
A 43-year-old man, previously in good health, was sent to the dermatology department because his fingernails had been infected with a fungus for a year. Even after taking antifungal pills (terbinafine 250 mg), his condition didn't improve. During the check-up, the doctors found small holes and separation of the nails in seven of his fingers. He also had some red, scaly patches in his left ear and a bit of dandruff on his scalp, which made his head itch slightly. There weren't any other skin issues noticed.