My solution to this spam is that I changed one letter in my LinkedIn name to a Unicode that looks like a letter but isn’t (think math symbol, etc).
If I get email or a message that includes that character, it proves software sent the message and it wasn’t typed by a human.