I notice you stated your computer was under a warranty, so I am assuming this computer is fairly new.
I also see where you just had the hard drive replaced because the original one was bad.
Before I get too far with my thinking here, I need you to clarify for me exactly how long ago you purchased this computer, because I am thinking it's been less than a year ago.
I am also wondering if the techs who replaced your hard drive would know why this is happening.
It appears your drive is functioning and performing as it should be with the exception that it is crashing the computer when you attempt to run an executable from a disk.
Have you tried looking in Event Viewer for any errors in the application events or hardware events logs?
You can access it by typing eventvwr.msc
into the search bar located in your windows start menu.
If you have having issues here, with deciphering those logs, you can do the following.
No installation required.
Double click on BlueScreenView.exe
file to run the program.
When scanning is done, go Edit>Select All
Go File>Save Selected Items
, and save the report as BSOD.txt
in Notepad, copy all content, and paste it into your next reply.