Thanks for bringing this up. Let’s walk through the real root of the issue, and no, you shouldn’t replace your RAM just yet.
Try to run this command instead,
bcdedit /delete {badmemory}
If that works, restart and retry Advanced Startup. Now if it throws any error move to the next step.
The next step will require to use of a bootable USB.
Create a Windows 10 USB using the Media Creation Tool on another PC
Boot into the USB
Click Repair your computer > Troubleshoot > Advanced options > Command Prompt
Run these commands
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
Restart and try again. If still failing,
bcdedit /enum {globalsettings}
If you see an inherent line that includes {badmemory}, run this command
bcdedit /set {globalsettings} inherit {dbgsettings} {emssettings}
That tells Windows to stop inheriting {badmemory}.
As a last resort, if it’s still acting up and you can't access recovery
Boot into your Windows USB again > Command Prompt
Try to rename the BCD store and rebuild
ren C:\boot\bcd bcd.old
bcdboot C:\Windows /s C: /f ALL
Let me know which step you’re on or if you get stuck.