make sure that the SSD in your computer supports TRIM
sudo hdparm -I /dev/sda # or sdb
Find “Data Set Management TRIM supported”.
Clean up the root partition of the SSD
sudo fstrim -v /
References
https://www.maketecheasier.com/enable-trim-for-ssd-in-ubuntu/