Hello
RAM can be disabled in two ways
1- Through BIOS editing
2- Through the displacement of resistors
For the first case, backup the BIOS and the exact model of the laptop to the BIOS support department, they will do it for you.
For the second case, you need to move the 10 kohm resistances of the RAM identification signal from the schematic. It needs a schematic.