After som investigation it seem that PySide 6 is installed in the PYTHONPATH by Binary Ninja and that somehow conflicts with IDAs installation. It’s strange that 9.0 works but 9.1 is not.
I ran into the same issue on my end. I can confirm 9.0 did not have this as well. My solution to get rid of the ugly output errors (mine were cosmetic) was to just pip uninstall the lib so the idalib init.py script was happy (I recall this is what I traced it back to).