The SDM issue is not battery related - it happens with the brand new Pentax battery, fully charged.
The shutter rattle issue could not be reproduced with the Pentax battery, all the way down it it being so flat the camera simply died. If the Hahnel battery (which always worked perfectly in the K5 - I used to alternate them) has suddenly died, that is fine as a "result". But the camera should still not lock up into the "rattling shutter" mode.
In my (industrial electronics) business, FWIW, if we have a disaster and send out a dud batch of stuff, we very quickly send out corrected product and recall the duffs, and we tell every affected customer that he is the
only one affected
Thankfully this is extremely rare (1999 was the last one - a few hundred units with reversed tantalum capacitors which would eventually fail short-circuit).
Obviously if Pentax have say 10000 K3 cameras or lenses that are duff they aren't going to send out 10000 new ones by DHL and then hope for the other 10000 to be returned... so they will do the less ethical option which is the only economical one and which everybody else does. I don't really mind so long as mine gets fixed!