Help on this error: PermissionError(13, 'Access is denied.', None, 5)

Basically when I try to upload my code into my board(Wemos D1 R1), this error pops up, it was just fine the day before but today its acting up, I don’t know what I’m doing wrong… Also sorry if this is the wrong sub-forum to post this

Arduino: 1.8.9 (Windows 10), Board: "WeMos D1 R1, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Sketch uses 261280 bytes (25%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27232 bytes (33%) of dynamic memory, leaving 54688 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: bc:dd:c2:9e:09:5b
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 265440 bytes to 193703...

Writing at 0x00000000... (8 %)Traceback (most recent call last):
  File "C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/upload.py", line 25, in <module>
    esptool.main(fakeargs)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2698, in main
    operation_func(esp, args)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2158, in write_flash
    esp.flash_defl_block(block, seq, timeout=DEFAULT_TIMEOUT * ratio * 2)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 104, in inner
    return func(*args, **kwargs)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 632, in flash_defl_block
    self.ESP_FLASH_DEFL_DATA, struct.pack('<IIII', len(data), seq, 0, 0) + data, self.checksum(data), timeout=timeout)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 354, in check_command
    val, data = self.command(op, data, chk, timeout=timeout)
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 315, in command
    self._port.timeout = new_timeout
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/pyserial\serial\serialutil.py", line 368, in timeout
    self._reconfigure_port()
  File "C:/Users/admin/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/pyserial\serial\serialwin32.py", line 222, in _reconfigure_port
    'Original message: {!r}'.format(ctypes.WinError()))
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, 'Access is denied.', None, 5)

Writing at 0x00004000... (16 %)the selected serial port 
Writing at 0x00004000... (16 %) does not exist or your board is not connected

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I don’t suppose you have that serial port open in serial monitor or some other serial application? Close that if so.

It kinda varies on what the problem is, just now when I try to upload it gave me a serial.serialutil.SerialException: GetOverlappedResult failed" with the same error code, PermissionError 13