Manjaro crashes when installing a virtual machine

Hello, how can I fix manjaro from crashing whenever I install a virtual machine using virt-manager?

Don’t use all your memory for your vm and use a swapfile/partition.