Random bsods and freezes on new hdd

It could be a faulty SATA cable that is connected between the hard drive and the motherboard. I had the same issues, one time my Windows froze which left me with no choice but to reboot. After I rebooted I got a grub error (because I have Linux installed):

attempt to read or write outside of disk hd0

Also, I was hearing weird sounds from the HDD, so I shut down, unplugged the SATA cable and re-plugged it. The issue was gone, but it appeared again so I replaced the SATA cable and the issue was never seen again.