Repeated MacBook Pro 2012 HDD Cable Failures
Looks like it was just bad luck. Got a cable from Amazon here as recommended by Allan in the comments and installed it. It's been working for almost a month with no issues.