Every Arduino board will have different port numbers. Even if you 5 identical UNO’s, they will have 5 different ports, one for each. The computer OS can see that the device signature has changed.
About your upload problem, you need to give the exact error message and the code you’re loading.
While connected, the Arduino will not change ports. It is more likely YOU (the human) is getting confused about what ports the boards are being assigned.
Being unable to program the board is most likely unrelated to what com port is assigned.
Since English isn’t your first language, maybe you are having trouble describing your problem. Maybe try in a “1. Plug in Arduino. 2. Look at Device Manager” format instead of a paragraph format. Then we can help understand what the problem is and how to fix it.