I'd avoid WD-40, since it leaves an oily film that can attract dust and doesn't help with contact problems. Power off and unplug the PC, then blow the slots out with compressed air and, if needed, use 90%+ isopropyl alcohol on a soft brush or lint-free swab and let it dry completely before reseating. Beep codes usually point to a stick or seating issue rather than a dirty slot, so try one stick at a time in different slots, and test the sticks individually to see if one is bad. If the beeps persist with known-good RAM, check the board for bent CPU socket pins or consider that the board itself may be at fault.