Thread 'Duck Nutrition Requirements' https://www.backyardchickens.com/threads/duck-nutrition-requirements.1603155/
Baby poultry need to have a balance starter to thrive. From what you wrote, your duckling was malnourished, probably the lack of certain nutrients caused his health to decline.
So...