Problems occur in the software or data on the hard disk, not the hardware itself, such as virus infections, malware, corrupted system files, bad sectors, etc., leading to data loss, file system ...
If Diskpart does not recognize a new SSD in Windows 11/10, check if there is nothing wrong with the physical connection, and then execute the solutions mentioned here.