I presume the camera always records, in a continuous loop? I.e. When the memory card is filled it is re-used from the beginning, once again.
Rather like the memory card in a Raspberry Pi, I suspect that your camera's card has probably reached its limit of usable write/read cycles and needs to be replaced.