If the Plugins folder is kept there and the user activates the Socket.io plugin from the list of plugins in UE5, the preview works (Play in editor), however the packaging for Windows fails.
The user must delete the Plugins folder for this to be able to be packaged. Took me a while until I figured it out....