Welcome to Toms Forum!
It depends upon the root cause; example: bad stick then return, mix-match then return, running at rated then increase the DRAM Voltage/IMC Voltage, poorly seated then re-seat and clean with Isopropyl, incompatible then return. etc.
Q - What MOBO?
Q - What RAM? {part number(s) or preferably link(s)}