My Asus G14 Rog Zephyrus GA402RJ keeps rebooting.

This laptop keeps on rebooting on battery and sometimes reboots while charging. I bought a new battery and the same thing happened. The only it doesn't reboot is when I remove the battery and use it while it is plugged in. I updated every driver. Any help?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0