You are encountering an error due to g
including a norm
term, and therefore not being affine, as all elements of an SDP constraint must be in CVX. Have you proven this constraint (model) is convex? I will mark this question as non-convex until you prove otherwise.