The constraint is the sum of infinite terms, and the sum of infinite terms contains optimization variables

You can’t have an explicit infinite sum of terms involving CVX variables or expressions. How to truncate is for you to determine, and has nothing to do with CVX.

Also, please read
Why isn't CVX accepting my model? READ THIS FIRST!