It is not illegal to throw out any Pan Card with incorrect information.
You can also give it to your local Income Tax Office, or mail it to the address on the back of the PAN Card.
You should be fine as long as you don't use it.