Problem: Invalid quadratic form(s): not a square

Your code has x times q, in which q and x are both CVX variables. That is not allowed in CVX, and when viewed by itself, is not convex. Why isn't CVX accepting my model? READ THIS FIRST!

If the constraint in question is actually convex, how have you proven it so?