I was watching a video on youtube while charging suddenly it blacked out, then it flashes black and white while I was moving my mouse then after a few seconds it stabilizes, my screen got pixelated, the interface got pixelated and I turned it off and open it again it reverted to its a normal state like it never happened but when I'm pressing the capslock button the Icon showing in the screen is not showing. I don't know if it's because of charging while using it like watching some videos. and even my screen is blacked out I can still hear the video on youtube playing.
My question is:
(1.) Is it ok to use my Acer Swift 3 for watching videos on youtube, playing games, and other stuff while charging? will it overheat it?
(2.) What caused the blacking out of my screen, flashing black and white while moving the mouse, and the pixelation of my screen? was it Using my laptop while charging? did it overheat?
(3.) How can I fix this if it happens again?
(4.) How can I prevent this from happening again?
plus my laptop is still new, I bought this last July, it's only been a few months, please Help! Thank you in advance!
Edited: while I was typing it blacked out again even though my laptop is still on. it took me a few minutes to go back to the normal state.