DCP error: Only scalar quadratic forms can be specified in CVX 2

a*a' involves product terms which are disallowed by CVX, and might be non-convex.

Have you proved the problem is convex? Yf so, perhaps a reformulation for CVX is possible. If it is not convex, then it can’t be handled by CVX. You haven’t shown enough information on your problem, so i don’t whether the problem can be reformulated for CVX.