Is this mining? How do I fix error after the attempt?

Try this then run again

sudo sysctl -w vm.overcommit_memory=1