How to deal with this problem, sos

Re-read my answers to your previous question How to deal with the erf function in optimization problem? , which apply here as well. your mention of sos (presumably Sum of Squares) notwithstanding.