Text this: Tight bounds on the coefficients of partition functions via stability