For anyone having low-end machines with low memory size, you could experience lag most of the time. To solve this issue, you could add some space out from your HDD/SSD and use it. After this, your computer will not stuck anymore, and you can continue your work without the need to restart the machine.
Have a great day!