M.2 drive failed while playing MSFS

How does one check how many writes an SSD has had?

As noted, OS is on C, MSFS is on D
pagefile is probably on C, I didn’t do anything to change that.
Rolling Cache is on C
No Manual Cache.

Do SSD’s have temp monitoring and shut down if they get too hot?