ERROR:Disciplined convex programming error: Only scalar quadratic forms can be specified in CVX

The matrix constrained to being semidefinite must be affine (linear) in the optimization variables. The matrix which you constraining to be senidefinite is not affine in the CVX variables; therefore it is a Nonlinear SDP and is non-convex. If am not mistaken, your SDP is the easiest special case of Nonlinear SDP, namely a Bilinear SDP, which in general is difficult to solve, even to local optimality. You can try PENLAB, PENNON, or PENBMI as solver, called by YALMIP.

Before doing that, you might want to check whether this problem can be reformulated as a Linear SDP, which CVX could handle. I don’t see any obvious way of doing this, for instance by Schur Complement.