FYI, most SSD failures are not caused by excessive writes to the SSD, but from the SSD's controller failing. Those types of failures are usually without warning (or very little warning) & will be quite sudden & permanent. Many SSDs, especially the better quality ones like Apple uses, typically can write PBs of data before dying. I've only personally seen the latter occur a few times where the SSD was being used under extreme conditions/load and in a 24/7 endurance stress test which lasted several years (the website pulled the report & I don't feel like searching the Internet Archive for it at the moment).
Your two main issues here are that you don't have enough memory on your laptop for the way you are using your laptop since 10GB of Swap is way too large....I'm sure the "Compressed" memory is also in the GB range.
The most concerning item is you are reporting just 24.28GB of "Available" storage space. The "Available" storage value is very misleading & unreliable. You need to check your Free storage space which unfortunately is only shown in Disk Utility or the System Profiler. On macOS "Available" is not synonymous with Free. The Free storage value is the most important storage value to monitor.
If you completely run out of Free storage space, then bad things will happen....such as the system crashing & having no way to delete items to make more room on the SSD due to how the APFS file system works. You need an absolute minimum of 20GB+ of Free storage space at all times for the normal operation of just macOS (best to keep at least 20%+ instead of GB). You will likely need even more Free storage space depending on the needs of the running apps since that 20GB can disappear very quickly with no open apps.
Since your Mac is undersized for your workloads, you are adding much extra wear to the entire computer. The lack of sufficient memory is causing the system to use Swap which adds a lot of extra writes to your SSD. The lack of sufficient Free storage space exasperates the problem because the SSD has to work harder to keep the wear leveling on the SSD's NAND memory cells balanced (meaning lots more writes the SSD already being slammed by the Swap usage). All of this also causes those NAND memory chips to get really hot which can weaken them as well. All of this can cause the system performance to degrade because the system must do so much extra work in the background. The amount of wear to the SSD also depends on the number of NAND chips used by the system. Many times for the smaller SSD sizes only a single NAND chip is used....these days a single 256GB NAND is very likely, but I have no idea if this is the case for your Mac. If it contains a single NAND chip, then the SSD will need to work even harder to balance things. Apple doesn't provide details on such details regarding their SSDs, but I know a couple years ago at least one Apple laptop contained just a single 256GB NAND chip.
You should start closing apps to lessen the memory pressure & relocate your largest items to an external SSD to make more Free storage space on the internal SSD. Or you can purchase another Mac with more memory & internal storage.