Error after swap memory change (Jetson Nano J1020)

Hi…
I have Jetson Nano J1020.
I tried to download Opencv by referring to the any site.
But I got a booting error after I was copying the code and doing a reboot.

. The site said that swap memory needs to be increased.
. so I executed the code as below.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nano
sudo apt-get install dphys-swapfile
sudo nano /sbin/dphys-swapfile
    #CONF_SWAPSIZE= ⏩ CONF_SWAPSIZE=4096
    #CONF_SWAPFACTOR=2 ⏩ CONF_SWAPFACTOR=2
    #CONF_MAXSIZE=2048 ⏩ CONF_MAXSIZE=4096 
sudo reboot

What are the solutions? Should I reinstall jetpack?