The first code you mentioned is often a ram or driver issue and the second one you mentioned is often a driver or registry issue.
Since you already ran some memtests and found a fixed a few errors, that could explain the first code. You could also try using device manager to make sure...