CVX failed but automatically proceed to the next iteration

You should pay attention to Mosek’s warnings. Your optimization problems are becoming wild. Eventually, Mosek can’t solve them. Then my posts at Disciplined convex programming error: Cannot perform the operation: {invalid} .* {real affine} apply. So my advice to yo now is the same as then.