People's nails grow from the nail bed (popularly speaking, the red meat under the nails), just as hair grows from scalp hair follicles, and the principle is the same.
There is only one reason why nails are too long, that is, the nail bed is deformed. If it's not serious, you don't need treatment.
If it affects your appearance, life and work, it is recommended to have an operation. Only a small operation is needed to remove the deformed nail bed. It's not expensive and painful, but I suggest you go to a professional hand surgery for consultation. Some orthopedic surgeons or general surgeons don't take this seriously.