Not every logical combination of inputs is possible with just lacing and/or list levels based on a given structure. You need to provide input structures that allow the node to replicate correctly - based on what you’re trying to do. A lot of times that just means duplicating part of a list so that every iteration has valid inputs at the expected structure. Another option is using replication guides.
Read through the DesignScript guide linked above and look at some of these other threads dealing with the same issue to see if you can figure out the correct combination to get what you’re after. Keep in mind, the initial output may not have the structure you’re expecting since you’re actually applying multiple replication levels to get the information you want. You’ll likely need to do some extra transforming and/or filtering of the data structure to get the result you want, but it will work. You could also use Python.