Macbook Air restarts when watching Youtube videos fullscreen
Two days ago, I was watching a YouTube video fullscreen when my laptop (Macbook Air) suddenly restarts and sends me to the login screen. I tried again, but the same thing happened. I can watch Youtube videos okay without fullscreen and I haven't tried watching anything on another video player yet, but this happens only on the Chrome browser. It works fine on Safari, but I prefer to use Chrome as my default. I haven't updated to macOS High Sierra as well.
I tried resetting my Google default systems using the answer that was given via this link, but it still occurred. Then I went into Safe Mode using this; MacOS crashes when watching youtube fullscreen
but I panicked and shut down when my laptop starting to act up when it glitched.
I also updated the latest security update I've been holding off for a while, but the problem still wasn't fixed.
So I don't know what to do to fix this.
MacBook Air, OS X El Capitan (10.11.6)