I've got something weird going on with my fingernails at the moment. Not guitar or fungal related though... Odd!
Anyway...
Other than the obvious about keeping them cut short then you'd need to analyse your technique. The strings should be bunching on the tips of your fingers and your nails shouldn't be touching the strings.