How can I resolve this CVX issue?

This forum is for CVX, which runs under MATLAB, nor CVXPY

https://www.cvxpy.org/faq/index.html#where-can-i-get-help-with-cvxpy

Are there any methods to prevent this formula from generating an error in CVXPY? Or can it be transformed into a different form?

As mentioned by Mark this is NOT a forum for CVXPY, and CVXPY does not work by copying the exact Matlab syntax from CVX. These are different tools.

Having said that, in CVXPY the exponential cone can be created directly by using the ExpCone class: Constraints — CVXPY 1.5 documentation although typically you rarely use it directly and operate with atoms such as cp.exp, cp.log, cp.kl_div etc. instead. I hope that helps you point in the right direction.