Its surprising how long those electronics lasted considering they were just regular off the shelf components and not rad-hardened
There's a big argument going on in military procurement right now about the high $ state of the art drones vs cheap & adequate.
There was a time when they were going to try to do more, cheaper, faster missions, which IIRC lasted until the first one failed, and then that policy was abandoned.
Similarly, the video (and associated audio which malfunctioned) of the skycrane-deployed landing was done by COTS components which otherwise would not have been present at all.
Also, by COTS, they're using components which would otherwise be meant for industrial use, so they're still likely to be more rugged than what might come to mind when thinking of off the shelf components.