...and dimensions in general appear weird.
L = A_v'*X_v + X_v*A_v or (A_v'*X_v + X_v*A_v +X_v) looks like the standard matrix you'd want negative semidefinite for symmetric positive definite X_v
However, you create the 64x16 matrix L, which you then constrain etc
I think you're getting lost in the kronecker algebras, A tip would be to start everything with for-loops and get that to work, and look at the objects you create to ensure they have expected properties (dimensions, symmetry), and then when you have that working, compactify using kron tricks etc if you must