Write caching should always be enabled but especially with SSDs, they're designed with it in mind, for both performance and endurance. Write deferment improves endurance for two reasons: one, it reduces unnecessary writes (lower write amplification) and two, it writes sequentially (not randomly) which also reduces NAND wear. Nowadays consumer drives have SLC caching - portion of the TLC in single-bit mode - so this is a bit more complicated, but that's the general idea. For performance it's also improved because it can have optimal parallelization (esp. important for SSDs vs. HDDs). SSDs also rely on DRAM (and/or SRAM) for the flash translation layer (FTL) which handles metadata (data about data - mapping/addressing, garbage collection/maintenance/TRIM, wear-leveling, page-caching) and this also benefits from the write caching because it too can defer writes to the flash (there's always a non-volatile copy) and also write-combine (make the request nice and sequential). So for these reasons it's inadvisable to disable write-caching for SSDs.
That being said, having a stable system with a surge protector and UPS (or battery) is ideal when using any type of storage but especially SSDs. When power is lost, they have a small amount of time to commit writes to the drive, this being both metadata and data updates. Windows is pretty good with this and you'll usually just lose immediate data in open applications if anything but over time if there's mapping corruption you can secure erase the drive to restore it usually. Keep in mind that you should always have a backup system in place. In other words, write-caching should always be enabled since you're at risk of data loss at all times regardless.