that is a weird one.

I'd have gone for the sd card - but if you've re-formatted it and tried a different one - not that.

The other obvious one would be the motherboard overheating - but doubtful it'd happen on 2 boards.

Check the cards are formatted with fat32 and NOT exfat.
Could still be that.