In this context it's not one individual stealing from another. This is a temporary reallocation of a dormant resource within the system to a more critical process that requires those resources to perform its function and ensure the system remains stable. In this framing I'd be inclined to argue not taking the RAM would be the unethical choice.
Unless this company was actively working against humanities survival, then the ethical thing to do would be to steal the RAM and not use it!