Chronic neurological damage and cognitive impairment may persist as long-term effects of untreated pellagra, highlighting the importance of early diagnosis and treatment.