Zend certified PHP/Magento developer

Hard drive issues after setting to offline and disconnecting the hard drive

I used Disk Management to set my hard drive to offline (method). I shut my computer off then disconnected the SATA cable and PSU cable from the hard drive. I rebooted and used my computer for a few hours. I shut down and plugged the cables back in. My computer will not get past this screen now. It just spins the circle forever. The automatic start up repair did not fix it. If I disconnect my hard drive, my computer boots as normal. At this point, I reset my CMOS battery and BIOS. The HDD was detected in the BIOS. I plugged in a USB with Windows 10 installation and tried to launch the recovery tools but they would not load after an hour. If I shutdown and disconnect my hard drive, it loads instantly. My motherboard supports hot plug, so I enabled that setting in the BIOS. I disconnected my hard drive and booted into Windows as normal. I plugged in my hard drive then I tried launching Disk Management and Diskpart in CMD. They were unable to load and were just stuck for 30 minutes. The moment I disconnected my hard drive Disk Management and Diskpart loads instantly. I reconnect my hard drive and the same issue occurs.

Windows version: Windows 10 Pro 64 bit 20H2

Motherboard: Asus z270-AR

Hard drive: Seagate ST2000DM006 2TB BarraCuda 3.5″ 7200RPM SATA3 Desktop Hard Drive (2 years old)

SSD: Samsung 960 EVO (my boot drive)