NotAnotherNoob99 20-year SysAdmin here. Ignore the theory nerds for a second. Here is the exact bulletproof procedure:
Golden Rule #1: Unplug every single USB flash drive, external HDD, and SD card except the broken one.
Now open CMD as Admin and type these exact lines:
1. diskpart
2. list disk (Look at the "Size" column. If your SSD is 1TB, look for ~931 GB. Note the number X.)
3. select disk X (Double check the number!)
4. detail disk (Sanity check: make sure the device name matches your Samsung SSD.)
5. clean
6. convert gpt
7. create partition primary
8. format fs=ntfs quick (or fs=exfat quick if you use it on Mac too)
9. assign
10. exit
Done in 30 seconds.