Please check your computer’s BIOS settings to verify whether it supports supplying power to the USB port during suspend or sleep mode. Enabling this feature will prevent the USB port connection from being lost and will ensure that the USB port number remains unchanged.
You may also consider enabling Fixed-base COM mode, which allows the USB port to retain the same assignment even if you connect your UPort to a different USB port.