Macbook Pro (mid-2012) battery not identified (shows X) after SSD install
Based on what you’ve described, it sounds like you may have accidentally damaged something internal during your upgrade. Since Apple Hardware Test didn’t turn up anything, ordering a replacement battery is a reasonable next step. If that doesn’t work, then there must be damage to the logic board. You can get tested replacement boards for around $200 or so on eBay.