avrdude: ser_open(): can't set com-state for "\\.\COM5"

I have two computers that I have used for programming arduinos. I recently had to wipe one hard drive and completely replace the other. I went to reinstall the arduino IDE but I can no longer connect to my arduino UNO or any other board I have. Went I go to upload it to the com port on one computer(windows 10) it says

avrdude: ser_open(): can't set com-state for "\.\COM5"
An error occurred while uploading the sketch
Error while setting serial port parameters: 9,600 N 8 1

and on the other computer (windows 7) when I go to set the driver through device manager it causes the computer to BSOD. I have tried 2 different uno boards, 2 different pro minis and also different wires but I continue to get this problem. I have gone through all the other posts about this problem but none of the solutions have yet to work. I know the main problem with the uploading is the boards are sending data to the serial moniter for some reason. The second any board is connected it just sends "" on repeat. I have no clue what to do to solve this as I have tried just about everything I could find on it.