Mine randomly did the only recording 4-5 seconds thing (with a real Samsung card), factory resetting my camera and then formatting the card in it fixed it for me. My names were still fine though.
If the card is from ebay though then it's probably a fake, test with h2testw to verify.