The problem was with the charger. I tested with a multimeter and the output is low. So while gaming when the nvdia card switch on.... as a result the laptop consumes more power and the chager was not able to provide the required amount.
Thanks for all the replies. :D