You could try using the official RPi imager tool to write RPiOS or LibreELEC to the SD card, IIRC it will do a verify pass after writing the image to SD card
From industries large and small, to the kitchen table tinkerer, to the classroom coder, we make computing accessible and affordable for everybody.
www.raspberrypi.com
Other disk imaging software might have a verify function, too, if yes use it to verify if the SD card is actually OK (SD card, card reader on your PC could all be faulty meaning you would be chasing a ghost searching for an issue on the RPi side).