Every solid-state drive implements TRIM in a slightly different way, and many SSD manufacturers only truly test for compatibility on Windows. Search company Algolia
found some data corruption bugs with certain Samsung SSDs with TRIM on Linux, and similar issues may occur if you enabled TRIM for such drives on a Mac. There have also been reports of some Crucial drives not functioning properly with TRIM on Linux.
In fact, the Linux kernel contains
a blacklist of SSDs that don’t support TRIM properly. You probably shouldn’t activate trimforce if you have one of the SSDs that appears on this blacklist in your Mac.