UPDATE: (FOR ANYONE THAT MAY BE EXPERIENCING THIS)
So, somehow I managed to figure this out on my own, although I'm no computer expert. So, about a week ago I had dropped my laptop charger on the ground and after plugging it in, it made this awful burning noise when lit. After like a day, it stopped doing this sound and therefore I kept on using it normally.
Now, going to my mobile phone (Huawei P8 lite), I have this charger (of an old Samsung Young) which is very broken, but still works, under the right conditions (trying to hold it properly so that it charges is soo annoying) and when I use this charger, my phone starts clicking the screen and random buttons on its own (which hints to me that the charger can really affect your device's performance).
So, therefore, I decided to try unplugging the charger from my laptop, and to my amazement, it did not crash
.
I think that the charger had some electromagnetic interference with the power or something, I honestly dont know, so if someone can explain the reasoning behind this (so that I learn something new) I would really appreciate .Thanks,
Jokniserous