Cannot perform the operation norm( {mixed convex/affine}, 2 )

The resolution is to only use affine expression as the argument of norm.

The specific solution to your (@clm) problem is at Help:cvx codes about convex