Press Windows + S and type cmd. Right-click Command Prompt and select Run as administrator. Type compact /compactos:never and ...
So one thing that shortens the life if an SSD is the erasing and writing to its memory cells, but the other issue is heat.