For Newton's Laws to hold, mass must not vary. Wherever you read otherwise was mistaken.
Take a look at this answerthis answer. It contains a description of why mass must be constant in Newton's Laws in the context of the rocket equation ... but the analysis applies generally. Newton's Laws are not valid for variable mass systems.