If your cam can play vids, often a corrupted file can be repaired by the cam itself by playing it in the cam. If that works, then you can use the card with the repaired file as usual afterward. I'm not sure how the process works, only that it has sometimes worked for many other people and it's never hurt anything trying it.
It sounds to me as if your SD card might be too slow for the cam. Daytime vids have a lot more data involved as the sensor is "seeing" more, plus with many cams nighttime vid FPS rates automatically drop to work better in the lower light, which also reduces the amount of data being recorded. Best to check your card by first doing
THIS then doing
THIS. If the second test only does a small part of the card, format it in your cam and try again. There will be a tiny amount of unchecked area on all cards; this is the card's File System OS.
SD cards are one of the most common issues with dashcams and few cards can handle the write speeds needed reliably. They do wear out over time as well, so doing these tests when you have a problem is always a good idea. Also you should format your card in-cam every 2-3 months as preventative maintenance.
Right now, the Samsung EVO Select is bargain priced on Amazon. Be sure your order is marked "Fulfilled by Amazon" to avoid fakes, since they have these cards made specifically for them. It's the same card as the EVO Select if you can find that cheaper, but with any new cards run these two tests above to ensure the card is real and not defective.
Phil