Did you try booting the external drive on the 2012 laptop while connected externally? If you have the non-Retina model, then the internal hard drive SATA Cable may be bad so booting it externally may be fine (assuming the drive is healthy & the OS/file system is ok). That is a common problem with the non-Retina model.
Which brings up the question, what is the exact model of this pulled drive including whether it is a 2.5" SSD or an M.2 blade style SSD, or an SSD using the Apple proprietary blade style SSD connector? We are missing way too much information. These are extremely important details.
I highly support @BDAqua's suggestion to check the health of the external drive making sure to post the complete DriveDx text report here using the "Additional Text" icon which looks like a piece of paper on the forum editing toolbar so we can examine the health report.
I am confused by this thread. I thought you were using the pulled drive externally on the 2017 Mac, but it also seems like you are trying to run First Aid on it or even erase it. You need to slow down and pick one thing to do. If the external drive is healthy and the USB cable/adapter and the drive dock, adapter, enclosure is working & compatible, then you should easily be able to erase the pulled drive by making sure you erase the whole physical drive by following the instructions in the following Apple article:
Erase and reformat a storage device in Disk Utility on Mac - Apple Support
You also need to tell us exactly what happens in detail along with the exact error message when you try to do something with the external drive. I have seen no useful details posted in this thread which we can use to assist you.