No let’s really drill down on this lie of yours- no one loses their shares when they take a tax write off. And there is no ability whatsoever for some third party to “get” the shares when someone takes the write off.
And as always- do not take the write off. No one cares.