I mean, different materials of a membrane have different operation ranges of pH values for the material to be separated. If diclofenac is a strong acid, then it might damage the structure of the membrane. Same principle applies to detergents too.
Okay. Think about the case when acidity is too strong and the membrane has -OH base, then the membrane maybe compromised and the size of the average holes on the membrane will increase. In this case, the separation efficiency will be decreased if the previously selected molecular size is adequate.