Killed process due to oomkiller on ubuntu 21

A clear and concise description of what the bug is.
So whenever I boot up xmrig it runs for a few seconds then it stops working with the simple message: Killed. Ive discovered with dmesg that oomkiller has been stopping the process. (Running i5 5th gen, 4GB ram. (old macbook))



