@arham97904 This sounds like bad ram. You can try removing all the ram, then trying to reinstall the sticks one by one.
Follow the diagram on the motherboard which will indicate which slot should be filled first when only one stick is used.
If it's an older system, generally the slot closest to the CPU should be filled first. If it's a newer system, the second closest to the CPU should be filled first.
You can try both if it's not marked on your motherboard.