To be sure if the hard drive has really malfunctioned, you can go to File explorer > click the Windows button on the bottom left > search for File explorer > right click on the drive you want to check > go to 'Properties' > In windows, go to 'Tools' > click the 'Check' option. If the hard drive is causing the problem, you will find it here.