Question: what do you do when you lose a nail?
Answer: Cover the nail with tape or an adhesive bandage until the nail has grown out enough to protect the finger or toe.
If you trim off the detached nail, you will have less worry about the nail catching and tearing.