Sounds like you’re running out of RAM, try adding some swap.
Instead of using the power button, do this: