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

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

Treatment
A case report suggested that drinking carrot juice daily may improve onycholysis.

More information ― English
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.