There is some lore about this but exact details are not known.
The Acidanthera developers encountered this situation last April and a bug report was at their github page.
The diagnosis was in two parts;
1) Samsung and maybe others do Trim in a way that's bad for MacOS. Depending on the state of your drive when Trim is requested and based on how much work there is to do (Trim is I/O, a special form of write) it can take a while to complete. Some people may recall fussiness back in the day that Apple wouldn't even enable Trim on non-Apple drives, there were 3rd party extensions, and eventually Apple added the "trimforce" command. (Also, Trim is a microsoft invention and a stupid idea like Winmodem but I won't go into it) So there are basic reasons to wonder if Trim support for non-Apple drive has always had a problematic aspect.
2) It was noted that MacOS can produce drive workloads that are problematic for some SSD controllers, where Phison is mentioned and problematic means the drive is killed. I have seen this myself when building 10900 hack. I lost two new Sabrent Rocket 4 drives to Big Sur, within a few weeks where they would overheat and die. The situation was connected to Spotlight indexing a large amount of personal and data after a clone. And possibly to Trim kicked off at boot but idk for sure. I engaged Sabrent support for both failures and eventually took a refund and got a WD SN750 which works fine.
I have a 970 EVO for build experiments which works fine, but it's too small to hold my data and I've never used it for daily driving, so I may not trigger the stalls that others are now reporting. Also Monterey may be more problematic.
The asked for users to help with a study and included a config.plist parameter to limit a Trim timeout that can't exactly solve the problem. Others can read up and see what they think. I learned about this parameter from another forum post here... But I can't find it.
I also wrote up all the details I had and submitted as a stand-alone thread in Monterey Desktop, then a mod moved it to Mojave Desktop for unknown reasons and now it's down the memory hole.
It looks to me like while back a mod hid my account posts from appearing Recent Activity, possibly due to some tough words I had for how they were treating a tyro, so afaik my writeups never get seen in the stream of activity.
A mess all around.