I hate giving out contact info now because of this kind of thing.
Once I verbally told a counter employee my phone number and immediately started receiving dick pics. There were only two other people in the waiting area but it could’ve even been the employee, who knows?
Now I never say it, I’ll write it on paper and take it with me afterwards, but maybe I’ll start saying “I don’t like giving out that info, but if you must have it, I’ll make a trade: I’ll give you mine and you give me yours.”