I am not sure how to prevent the resettting but you could backup your router configuration by logging into the router, advanced - Config. file - save. Then restore it as needed.
↧