How to solve "Cannot perform the operation: {convex} .* {real affine}"

This doesn’t look convex to me. Consider a one dimensional version of this, and let h_k = 1. Then your right-hand-side is
w^2 * lambda
in which w and lambda are both CVX (optimization) variables. That is an indefinite form, i.e., neither convex nor concave, and therefore will not be accepted by CVX.