SMS dit: Tight bounds on the coefficients of partition functions via stability