Press on your keyboard to start the diagnostics. For Intel-based Macs: Shut down your Mac. Turn it back on and immediately press and hold the D key .
Your PC will restart into a blue environment. By default, it runs a "Standard" test. how to run memory diagnostics
If any of these tests report "Hardware problems" or "Address errors," your RAM is likely physically damaged. Press on your keyboard to start the diagnostics