I can’t tell from that. You ought to be able to figure out exactly which two things being multiplied are triggering the error message by typing pieces of it at the command line and see what CVX says.
{real affine} .* {positive constant}
Why should this be an error, it’s just a positive constant, it should be a convex function after multiplication wow
If the code is long then reduce it to a small REPRODUCIBLE example which can be executed, with all the input data, and reproduces the same message. Then we will be able to help. A small reproducible example does not have to be an exact copy of your code, it does not need to have any practical meaning either, as long as it demonstrates the problem you want to demonstrate. Unfortunately we are unable to guess what exactly happens on your machine.
Preparing a small reproducible example is a very helpful debugging technique anyway because it often makes you discover and fix the problem yourself. So I really recommend it. For example it could be the case that the “positive constant” is actually +Inf, or something else of that kind.