After you reboot your computer do you then get the com 5 issue when the serial monitor is opened? If so, you can go into the arduino com port advanced properties and change the comport being used from com5 to another port like com6 and see if com6 can be used by the IDE.