mIRC does not parse the SSL=ip:port token in numeric 005, so that is unlikely to be the cause of the issue.

If you install a new copy of mIRC in your Windows Documents folder, using the "Portable" option in the installer, and then try to use that copy of mIRC to connect to the server, do you see the same issue?