Another day another Acer swift 3 problem

my laptop start doing a random restart on heavy load when I am doing programming or using photoshop, adobe premiere pro etc.
When I check the event viewer it displays below as Kernel-Power.
The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.





if I check further system logs right at the time this above event occurs, there are Infomation events like



There is also warning as
The driver \Driver\WudfRd failed to load for the device
any idea what could be the problem? it seems to be the power related but i am not sure what exactly.
it happened while charger is connected.
I have all the latest bios update and drivers up to date.