How long did you run the memtest for? Ideally it should run a couple of times, since just a single pass might not detect any errors.
But it’s weird that it happens when you try to update. Could it maybe be related to your network hardware, either LAN or WiFi? If you’re using WiFi, try LAN, or vice versa. Perhaps even a USB dongle, and disable the onboard network hardware completely.