There are different kinds of bad sectors, and different causes. What you describe is of the "bad" kind.
While disks are expected to work mostly reliably, reality has it that bad sectors happen, especilly in adverse conditions, and towards the end of a device's lifetime. Drives will luckily, and unluckily, automatically remap bad sectors when they occur, you usually do not ever even notice unless you look at SMART info.
However, you did notice, which is bad. Because when a sector (or rather block, SSDs arrange sectors in larger blocks, and can physically only erase complete blocks) gets "bad", that normally means it cannot be erased and written to any more, but the data is still recoverable. The drive will covertly copy everything to a more healthy sector and will never tell you. SSDs do that all the time during normal operation anyway, this is called "wear levelling". So there is really no externally observable difference. But you did see a difference, and that's bad.
Either, this means the drive has already had so many failures that it has already run out of reserve sectors, or it cannot even read the sector any more, or the controller has a serious problem, or the whole thing is about to die. Or, whatever. In any case, no good.
Unrecoverable sectors are something that are generally considered to be "normal", although with a very, very low likelihood of occurring. Manufacturers say something like 1014 or 1015, but 1012 may be more realistic. Still...
Your mileage may vary, but I replace a disk when the first unrecoverable reads happen because on a healthy drive that kind of stuff just doesn't happen. Yeah, it's a "normal" thing, and it can (in theory) happen, but it doesn't happen. You can't trust a drive that has non-zero failures with your data.
You can somewhat mitigate that bad things will happen by having quality hardware and treating your hardware with respect. For the most part, that means no high temperatures, no electric "surprises" or other "harsh physical stuff". SSDs are much less sensible to "harsh physical stuff" than spinning disks, but they are not indestructible.
Fixing bad sectors (on any kind of disk) is an extremely stupid idea, only topped by overwriting a SSD with zeroes, which is even worse. Do not do that, ever.
What "fixing" bad sectors does is nothing but marking them as unreadable. The drive will remap the sector and thereafter never let you access that sector any more. That's as bad as it gets because often data can still be recovered when applying some patience. There are programs (like ddrescue) which copy partitions and re-read unreadable sectors a couple of hundred times in the hope that eventually a read succeeds. This takes forever but surprisingly it actually works! I've had to do it once a few years ago. However, after "fixing" bad sectors, you are out of luck. Your data is gone forever.
Zeroing a SSD will do two things. It will kill your data, and it will add one unnecessary complete erase-write cycle to every block. That's not what you want.
What you probably want to do is back up all data ASAP (if you haven't done that previously, which you should have done), then replace the drive.
Also, for the future you want to run an automated daily backup job. Yeah sure, only wusses do backups. But seriously, run an automated backup every evening, no exceptions. No, not once a week, every evening. If you have a weekly backup job because it's so annoying that it takes so long in the evening, you will have to rescue data (talking out of experience). Because when you back up weekly, it is guaranteed to happen that you get a failure 6 days after the last backup.
Before trashing the drive, be aware that your drive may not be guilty after all. I've had it happen some 7-8 years ago. The "expert" at the shop where I had my PC built talked me into buying a MSI board which was exactly as good as the ASUS board that I wanted (only, he probably had a better profit marge on that one).
So... stupid... fell for it, only to discover a week later that I got some corrupted files. Replaced disks, same problem. Eventually got a few bluescreens, ran memtest. Every now and then, once per hour or so, it would show a randomly occurring memory error. Had all RAM replaced, no avail. End of story: The mainboard wasn't compatible with the RAM.
Bottom line: It probably is the disk's fault, but not necessarily so.
2There are two kinds of bad sectors; physically bad sectors, and logically bad sectors. Logically bad sectors can be repaired via LLF or tools like spinrite, but physically bad sectors cannot be repaired at all. Most of what I know about this is related to mechanical disks, so I don't want to lead you astray on SSDs, but generally speaking, bad sector count either remains stable, or grows quicker and quicker over time as the drive fails. watch the count. you may have the same number you previously had, and if it remains stable, you may be fine. – Frank Thomas – 2019-05-26T08:27:57.773
2Also, what tools are you using to check for bad sectors? I've been assuming that you are reading SMART data, which is written on a rom on the disk controller. SMART stats will not reset on a format, so far as I'm aware, so if it had noted reallocated or current pending sectors, they are still the same bad blocks you had from before the format. They are permanent. watch their count. if it rises, buy a new disk. I use Speedfan in windows, or gnome Disks in linux to check disk SMART stats. – Frank Thomas – 2019-05-26T08:32:56.223
1I noticed bad performance on Debian Linux and Windows 10. So I used the badblocks tool to check my disk, which eventually failed. However, I logged into the Windows and checked by EASEUS Partition Master and found some bad sectors. I wiped the whole drive with zero. Then I checked again and I did not find any bad sector. After reinstalling the OS, everything was fresh and well-functioning. After a few days, I felt a bad performance again. I checked the drive and again I got a bad sector. But less than last time, of course, in less time. – Kaveh Shahhoseini – 2019-05-26T09:12:31.873
1@FrankThomas Unless Spinrite has been completely redesigned in the last few years, it does not actually fix bad sectors and is snake oil. The only reason it works is because it tricks the drive into thinking the sectors are not bad after they have been marked as bad (it removes them from the bad sector list), which makes things worse in the long run. – forest – 2019-05-27T02:53:03.197
17Don't "wipe" an SSD with zeroes like a rotational hard drive. This just wears the flash out faster, and does not actually zero all sectors of the flash. Use a secure erase utility or the vendor's utility to erase an SSD. – Michael Hampton – 2019-05-27T03:02:47.243
4@MichaelHampton Or just delete the encryption key. That is how modern large capacity drives do fast delete. – Aron – 2019-05-27T07:30:05.807
9Bad sectors appearing on an SSD are an indicator of imminent failure. Especially in conjunction with slowdowns. You will have to replace the drive - it may fail suddenly and completely. – pjc50 – 2019-05-27T08:18:57.727
1What make and model is your SSD? How old is it? How extensively has it been used (specifically, how much write activity has it seen)? – marcelm – 2019-05-27T13:01:14.363
1Yea, this reads like it's simply End of Life. Your drive is dying. Secure the data and get a new one. – Mast – 2019-05-27T14:39:50.270
2Easiest way to prevent bad sectors is to not connect the drive to anything. But that's not particularly useful. – Toby Speight – 2019-05-28T15:39:35.797
@KavehShahhoseini How old is the SSD and what make/model? What do the SMART stats show in terms of lifetime writes? – Ian Kemp – 2019-05-29T08:02:00.357
@IanKemp It's life is about 1 year, in ASUS Zenbook UX430UQ laptop 512GB SSD (SATA3 M.2). SMART stats shows healthy totally OK, but also shows reallocated sectors in increasing rate. It's now 1300 bad sector, while yesterday was 1280. – Kaveh Shahhoseini – 2019-05-29T08:56:05.873
probably not zero wiping flash memory would be a good start to prevent it. you should just use a new drive asap and keep a backup, i'm not sure what the question is exactly. just keep good care of the drive as much as you can and backup/replace drives as needed – Emobe – 2019-05-29T11:59:13.930
@Emobe What do you mean by keep good care of the drive? – Kaveh Shahhoseini – 2019-05-29T12:07:15.977