Is it safe to use RAM with a damaged capacitor?
While inserting a new DDR4 RAM module in the second slot of my laptop, I broke one of the capacitors (see image).
To my surprise, my Windows 10 started normally indicating that new RAM is available (24 GB in total). It seems to work normally. I ran Memtest by HCI Design with full RAM coverage and it didn't report any errors.
Is it safe to use such broken RAM? May it somehow break my hardware or software?
From an electronics design background that is almost certainly what is known as a "filter capacitor".
It connects a power or data line to ground in order to filter out high frequency noise. Depending what line it is on it may be just some extra protection.
If your memory is operating at the cusp of limits then a broken capacitor may cause the chip or some lines within it to be slightly noisier than expected.
What will happen is difficult to say though. Everything might well work fine for years with absolutely no problems or errors, you might get a bit error in memory once a week, or you might have an entire memory bank dead.
If it came to you damaged then send it back as such.
If warranty return is not an option, or you are just curious if everything is fine anyway, then there's no harm in running Memtest86 and seeing if it works.
By the placement I'd assume it's a decoupling/bypass capacitor. Although there's no guarantee, most products will work fine with a single missing decoupling capacitor.
You might want to make sure the PCB pads aren't shorted, but from the picture it looks fine.
You could have a higher chance at bit errors, so performing a memory test is a good idea. Decreasing the memory frequency could help if you get any errors, although I think this is unlikely to be needed.