Now, if it's just to avoid general annoyance, then using a UPS is the way to go. I got a pretty decent but relatively inexpensive Eaton 5S 1000. My building has uneven crappy electricity, and I got tired of mini brownouts resulting in sudden reboots. I never noticed yet anything bad happening with data corruption before I got the UPS though. Even still, I have all my data backed up on other disks too.
Bit flipping isn't that uncommon still sadly on many SSD model with sudden power loss during writes. Most of the time just that data chunk is lost... but it can be severe as well if it happens during some garbage collection move... huge chunks can be corrupted potentially. Also, nand with smaller nm process seems to be more easily effected by this.