A spouse who is Married Filing Separately is not required to provide the Social Security number for the other spouse, although the return cannot be e-filed without the spouse's Social Security number.
To file separately without the spouse's social security number, you must file by mail. Include a cover letter with the return explaining why the SSN for the spouse is missing.
(To print the return, ignore any SSN error messages.)