I did the exact same thing. I was married in November 2017 and asked the person doing my taxes about it and they said to file single, but I did not even think about the repercussions on the AOS and the status. When i realized it, I immediately contacted my tax preparer and they prepared an amended 1040X, which I signed and place in the mail to my spouse who needs to sign it and send it to a person in their home country that will request the ITIN number and file my taxes.
The amended 1040X actually helped me gain a significant tax break and will give me a huge tax refund check, but I hear it will take a while to get and have it processed. I hope that when my spouse goes to the embassy for the interview that this topic will not be questioned, but if it does he will have a copy of the amended return.