All of my phones (except the iPhone, actually) had hard reboot issues at around the 2-3yr mark. Usually at under 30% battery charge under high load. HTC Incredible, Galaxy S4, and Nexus 6. Nexus 6 was the worst, but I also had that one the longest.
My iPhone X didn't have shutoff issues, but the battery did swell enough to push out the screen, which Apple replaced for free even with an expired warranty.
My iPhone X didn't have shutoff issues, but the battery did swell enough to push out the screen, which Apple replaced for free even with an expired warranty.