Sounds like the motherboard.
How long did you leave the memory diagnostic running?
I have found that Windows Memory Diagnostic in Extended mode to be very useful with intermittent faults. The only issue is leaving the system testing for so long (over 24 hours).