I have encountered this issue before with using Geometry nodes in python. In the past I just decided to use the nodes instead of python; however, with this instance it would be too many nodes. I have tried everything I can think of including flattening any inputs involved.
Any help is appreciated. Thank you