The log says that the macro is calling the J function inside the MWVAR function. The J function allocates a matrix. Apparently, the function is being called as
X = j(k, k, value);
where k=0. The J function fails because a valid matrix has k > 0.
Unfortunately, the log does not tell you WHY k is zero. It could be that you've incorrectly specified the arguments to the macro. For example, it might be expecting positive values and your data is negative. Of maybe it is expecting numerical variables and your data is character. I suggest you tun the macro with some valid data and then compare the two data sets to figure out why one works and the other does not. Alternatively, if you can post your data and the macro, someone on the community might be able to assist.