Is it safe to clean the pins on the DRAM modules?
Yes, it is perfectly to clean the pins as long as you follow the appropriate steps. When done properly, it will not void the warranty on the DRAM kit.
How do I clean the modules safely?
There are few ways you can clean the pins safely:
After you remove the modules from the DIMM slot on the motherboard, hold the modules by the edges and use a can of compressed air to blow away any loose debris from the pins.
Make sure when using these cans, that you hold the can upright and do not tilt the can as that can cause liquid to leak from the can and potentially damage the module.