For standalone/non-web applications, users can configure a unique number as port. Apart from showing in the UI, APM Insight does not do any monitoring activity with respect to port number.
Since port number is a numerical value, it does not take any other value format and hence you may get error.