Error Code 2

error code 2 means the test was interrupted by the host with a software or hardware reset. This error typically indicates something on the host is causing the issue. this is not typically a hardware issue with the SSD.

I would suggest restarting in safe mode and rerun the test and see if it completes in safe mode. If it does you will have to work out what software in your environment is causing the issue.

If it does not complete in safe mode it could be a power issue from the host. I would connect the SSD as a secondary in a known good host and rerun the test. If it complete in the known good host the issue could be the power supply or some other hardware issue in the host. 

If SMART extended test fails on both computers it may be an issue with the SSD itself. If that is the case contact sandisk support and file a warranty replacement request.