For that young of a duck, I would just feed a complete feed no mealworms especially since there are issues currently. You stated "duck mash", but not what type of feed.
I agree with supplementing niacin.
Could you post a full body pic? A pic next to the other duckling.
If not growing there is more than a niacin deficiency occurring.