I've had this happen to my glowlight danios from time to time, not sure what the cause is. Unfortunately in my experience, I've not had any recover from it. I don't know if it's caused by random nipping or what. As far as treatment goes, something like methylene blue would help keep it from getting fungus.