Do any versions of macOS perform "SSD data block swapping" to avoid SSD fatigue?
Solution 1:
Wear Leveling
This functionality is actually contained within the Solid State Drive (SSD) itself and known as wear levelling. It has been standard on all Macs that have had SSDs - i.e. for many, many years.
I remember back in approx. 2008 when replacing the internal hard drive of the MacBook Air with a third-party SSD, you had to look out not to buy an older model SSD without wear levelling - but since then it has been a feature that is just always there on an SSD.
Operating System Agnostic
The functionality does not depend on operating system support, so any version of macOS will do. If your system otherwise supports it, running under Windows or Linux is also just fine.
Free Space
Also the functionality does not depend on having "free space" on your drive. It doesn't matter if you have 10 GB of free space or 1000 GB of free space. It works just the same.