KERNEL SECURITY CHECK FAILURE with new RAM

Have just upgraded the RAM on my laptop, when attempting to reboot I get the dreadful KERNEL SECURITY CHECK FAILURE error. when placing old RAM back PC works fine.
I have recently updated windows from 7 to 10, it was working fine and still is when I put old ram back in.
Does anyone have any idea of what could be going wrong?

bad ram. it happens