My victus computer

So I recently got a victus computer for gaming when I disconnected the charger so I could play the computer was freezing/laggy I really don’t how to fix this problem. I leave my computer charging all day but I know it’s bad but when I disconnect the charger it’s starts freezing and being laggy. Does anybody have the same problem as me? Does anybody know a solution for this problem?