My Computer crashes while packaging the game

I am new to unreal engine and spent a lot of time making a game, but everytime i try to package the game my whole computer crashes while its packaging and i have to restart my computer.
I have a invidia Geforce 1070 GPU and a intel i7-7700 CPU.

Have you checked the RAM usage to see if it’s running out of memory?

Yeah it ran out of memory while trying to package the game. Is there a way i can fix that or do i have to upgrade my pc? Btw thank you for helping me find the problem.

With an i7-7700 you can have up to 64GB RAM installed depending on the motherboard.

You can try increasing your paging file size

Okay thank you for the help