No, just resizing a partition won't hurt your SSD. It's almost entirely just updating the partition table and file system metadata (the drive's internal layout records), which takes negligible write cycles.
However, it really depends on how you did it. If you just shrunk a partition from the empty end, it's instant and effortless for the drive. But if you move a partition or shrink it from the front, your partitioning software has to physically pick up all your files, copy them to a new spot, and then delete the old ones. If you moved a 200GB partition, you actually wrote at least 200GB of data, potentially even more due to SSD write amplification. That does cause real wear.
That said, your 1% or 2% health drop is way more likely from the VM testing you mentioned. Virtual machines are absolute write monsters. They constantly dump heavy logs, swap files, and temporary data onto your drive in the background without you noticing. A weekend of heavy VM testing combined with a major data move can easily shave a percent off the health meter, but it's completely normal wear and tear over time.
What tool are you using to resize it? Just make sure to check if the layout preview shows it needs to physically "move data" before you hit apply. If it's just changing partition boundaries without shuffling files around, your SSD isn't sweating it at all. Don't panic too much about the numbers!