If the makepassive function is not producing acceptable results for the s2rlgc function, you may need to investigate further to ensure that the S-parameters data is correctly formatted and meets the requirements of the s2rlgc function. To address the error message you're receiving, it's important to ensure that the S-parameters data is passive. In addition to using the makepassive function, you should check the passivity of the S-parameters using the isPassive function.
Read more about the function here: https://www.mathworks.com/help/control/ref/dynamicsystem.ispassive.html