The original message was a collapsible section which had the error copied and pasted, you can click the little arrow at the beginning of the message to expand it. Also I could not export the world either since I also got the same "RangeError: Invalid string length." error.
I did manage to find the world again in an earlier installation for formamorph that I downloaded incorrectly, so I was able to export the world through there and import it into the new version.