I got the same error in Spyder with other objects from multiple libraries, even numpy arrays or pandas dataframes. As for you, I’m running the latest spyder version outside conda (pip install). This is a spyder-related bug, and from an MNE perspective, there is nothing that can be done.
You can however use the console to print different information from the object, e.g.
IN: raw
IN: raw.info