Generic error occured: interested why?

If you’re looking to inspect large chunks of data in GHPython, you should check this option:

Which enables the pre-Rhino 6 output panel:

Which is substantially more performant in several ways (see this thread for context). There are also some tricks you can use to make inputting and outputting large data lists/trees in GHPython substantially faster (see this old thread). Notably, using no input type hints and wrapping outputs in Python list/dict/class or Grasshopper types.