Not sure what the error means, but if it is memory.....
First I would remove and re-seat the memory, just in case the contacts are loose, then I would remove one of the two, and see if it still happens. If it doesn't, I would remove that one and put the other in and see if it happens with that one.
That will show you, and confirm, which is bad. If it shows the same problem on both, you probably have a different problem. (Unlikely that both sticks go bad at the same time).
In 13 years of using computers I have had exactly one bad mem stick. More than likely it will something else. I know that PC users have utilities that will test memory (memtest), but not sure if anything is available for OS X.