Open supportassist > troubleshooting > I was to troubleshoot my PC > Scan a specific hardware > Graphic card > stress test  If machine crashes it needs a new GPU (motherboard) if not, considering the machine is fairly new Go for a factory RESET from F12 menu, 
Ok, this only happens when it is connected to the charger and nothing else. Does anyone know why?
Dell G5 15 SE 5505 keeps blue screening