invalid integer value "CONNECTION" for connection option "port" Previous connection kept
It seems to me that what you really must have done is something like:
\c CREATE SUBSCRIPTION my_sub CONNECTION ...

The arguments to \c are positional, and the 4th position belongs to the port.
I see no other way your message could include 'Previous connection kept', which is exclusively generated by attempts to use \c or \connect