This issue is due to hardware failure. Go to search option, Write there “view advanced setting”. Now go to advance option. Click on startup & recovery then uncheck the option ‘automatically restart’, and press OK. Now the settings will be saved automatically.