Memory card empty but showing full

I have just purchased  new memory card for my DSLR which showed an error when I first put the card in, I formatted on the DSLR and now the card is showing as full in the camera but empty on my computer. I’ve also formatted the card on my Mac bu the same problem is showing. I don’t know if this has anything to do with it but the card doesn’t come in and out of the slot easily, it gets stuck and I have to pick it out.