Cancer and its treatments can lead to various nail changes such as dark lines or bands, known as melanonychia. Nails may also become brittle, develop ridges, or experience subungual hemorrhage, which are small bleeding spots under the nails. In some cases, nails can detach from the nail bed, a condition known as onycholysis.