Yes you can have dammaged the contacts in the memory card holder.
The some or all contacts could be bend, or even the switch (feeler notch) can be pusshed in or broken.
It is difficult to explain, that is why I also put a picture inhere.
You should use a light, and a magnifying glass to look in your camera.
The picture is from a memory card reader, but in your camera it should look the same. You can see nine contacts, and to the left on the picture you can see they look like a triangle. All contacts should look like thatand not one is allowed to be bend or have a dent.
When you look in the memory slot, to the right (not on the picture) you should see a little notch. That is the notch that reads the lock switch. Telling the camera the card is locked or unlocked.
If that part is missing, or broken, or inside the camera that switch is dammaged, your camera will keep telling you there is a card error.
Waht could you do?
If one of the nine contacts is down, toy could try to get it up again, perhaps with a small needle. But please don't open the camera. You could do even more damage, if you are not skilled in that. If you can't fix it, contact a pentax certified repair centre and ask them what it will cost and how long it will take to repair.