I bought a used 1TB Apple SSD (which came out of a 2013 Mac Pro if I recall) for my 2015 MacBook Pro in 2018 that a family member now uses daily, and it’s still running strong on Monterey (last supported OS for the 2015). That’s at least five years of use for the SSD in my 2015 MacBook Pro plus whatever use it endured while in the older Mac Pro.
My current main machine is a 2019 MacBook Pro 15” with 2TB soldered SSD. Build date is October 14, 2019 so just passed 4yrs. I am usually running at least two Windows 10/11 VMs in addition to everything else running. I do have 32GB specifically because I knew I needed that for the VMs to run smoothly, so that has likely helped reduce/eliminate need for swapping. Anyhow, SSD health as determined by DriveDX is 100% healthy and 99% on remaining life. Power on time is at 1,193 hours (419 power cycle count) and total data written is 58.4TB. I recall reading somewhere that the reliable life of these SSDs are in the range of hundreds of TBs. So at my current rate, I will get another four years easily, and then I’ll upgrade to an M6! 😉
I think for 99% of folks, the SSD will outlive the usefulness of the computer itself, even with a lot of swapping.