Compound by parts:
头 (head) +
皮 (skin) +
屑 (flakes/scraps) = literally "head-skin flakes" — that's exactly what dandruff is.
屑 by itself means tiny flakes or scraps (
饼干屑 = cookie crumbs), so this construction is very transparent once you know the components.