SSDs have a limited number of lifetime writes. Depending on the size of the swap file and the frequency in which you write to it you could go through your lifetime writes faster than you expect. You can keep an eye on it by looking at your drives health metrics. It will tell you how many writes it's used. Usually in a percentage term
If you pull up the data sheet for your drive it'll tell you the total number of writes it's rated for.