Manjaro keeps crashing and rebooting when playing video stream

Expand to how much?

Just check how much ram is available and use that.