If you have any add-ons enabled, particularly any which were used in XF 2.0 to modify the editor toolbars/buttons or similar then these must be disabled.
Aside from that, if you go to http://localhost/xf21/index.php?editor/smilies-emoji do you get any errors in the output there?
It certainly seems to be some sort of server error because ERR_CONNECTION_RESET implies that the connection was closed without receiving a response from the server, so you could be hitting some sort of limit.