Are you mixing RAM. This shouldn't be the problem normally but still check.
If you are able to get to Windows, try these commands in CMD:
/online
/cleanup-image
/restorehealth
Best of luck.
The cause is probably a memory stick falsely put in, but a faulty memory stick could also be the culprit. Try to plug in the RAM again and hear for 2 clicks.