Thanks for the query.
There are various conditions which can present hereditary as well as acquired conditions which can present with loss of nials
Some of these like nail patella syndrome
is associated with other bony anomalies also.
There is nothing much which can be done about this.
Take care of your feet, always wear shoes.
Please meet a dermatologist
for exact diagnosis.
Let me know if you have any other doubt.
you can ask a direct question to me on this forum, following the below link.