Hi, nmasuda3705.
Well, at this point, I could only guess. Please upload schematic and files when you get the required permissions.
In the meantime, you might study the C-Block Basics papers on my QSpice GitHub repository. In particular, “per-instance data” is used to implement multiple schematic component instances with individual state data in a single DLL.
–robert