In some cases (like the AppleWatch), a swollen battery upon failure is an intentional design choice, apparently. At least that's what they told me when my Series 0 battery swelled up and caused the face of the watch to pop off. They claimed they do it intentionally so you know it has to be serviced and can't be used anymore. Probably different for laptops, though.