The problem came back, possibly because I kept the files from the previous installation of windows. I fully formatted this time and not had any issues just yet, but time will tell.
This problem is really strange it only froze when on charge which implies its a hardware fault. But after reinstalling windows it fixes the problem atleast temporarily, implying software is to blame. Very confusing.
In response to remy you dont need your windows key when installing you can just select ‘do not have windows key’ and it will activate from your previous installation.
Derrick keep in touch if you manage to get that firmare