Memtest86 freezing on Ubuntu 20.04

If memtest freezes, you very likely have a hardware problem. It's probably your RAM, but there is no way to be sure.

If you did any overclocking, the first thing to try is to reset that to normal. Similar with RAM timings: If you changed those, reverting them to factory defaults in the BIOS would be worth a try.

If you are sure you did none of that, it's time to replace the RAM. According to the memtest output, you seem to have a single bank of RAM, right? If it's more than one, you could try to remove part of the RAM (make sure the lower RAM banks are filled) and re-check; you might get lucky and find out which of the RAM modules is affected.

But first check if you maybe have an thermal problem: Check the temperature inside the PC case. Open it to see if all fans are spinning. Clean out the dust puppies (very carefully with a vacuum cleaner and if you have it, with compressed air in a can; or with a photo "rocket blower" if you have one).

HTH