What you're experiecing is what happens when a RAM chip is either not fully seated into its socket or is incompatible/defective.
Whenever something wonky like this happens, reseat the RAM. If it doesn't work, then replace it or get the right type of RAM.