Oh yes okay, so it’s clearly a hardware problem.
I agree with @VonOx, do you have enough storage on your SD card?
Otherwise, I strongly recommend switching to an SSD, SD cards often have data corruption issues over the long term, and are not very fast.
This SSD is €24 on Amazon, and is often on sale: PNY CS900 SSD Interne SATA III 240Go, Lecture 535MB/s
We talk about it here on the forum: