It happened to me before but mine was due for a change. It might hurt a little but you just have to cut it with a nail cutter to its minimum and let grow back
It may have paint but after several days the nail will automatically remove and the growth of new nail will start