Nano - can't open device (SOLVED)

Hi all,

I'm just starting with Arduino and bought Arduino Nano 3.0 with USB-C connection. I'm trying to do a simple blink test from built-in examples, but can't figure it out. I'm connecting Arduino with USB-C to USB-C cable. I tried to restart the PC and still get an error message when trying to upload the sketch:

avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.
Failed uploading: uploading error: exit status 1

When I change processor to ATmega328P (Old Bootloader) the uploading process seems to be stuck.

I'm not running Serial monitor or Serial plotter while uploading. I appreciate all the help I can get.

Thank you in advance.



@EDIT
Solved it by changing the port in device manager (COM5 -> COM6)