Yes, without the specifics it's hard to tell. OP does not state the exact expiry. It is possible that he is using weeklies to hedge monthly, hence the margin treatment.
did you attempt to close the oct. spread by selling the higher price calls first? " I tried to close some SPY OCT call credit spreads for a loss, and TWS would not let me, saying that it would increase my margin deficit."
Rolling the so called unused 20 Oct calls to Nov probably would have solved the problem but you shouldn't have to do that if your long and short calls per month pair up evenly. Can you elaborate on why IB's software did this? What were the details of IB's explanation? Why isn't it a covered situation? It just doesn't make sense... and if true, really sucks.
Either OP isn't disclosing everything or there's a glitch with TWS margin calcs. Hmmm...I wonder which one is more likely? Given that OP's massive prior posting history deals mainly with not understanding the logic of "liquidate last," I'd give the nod toward him. The lack of posting history is interesting. Any other nicks? There's been a lot of IB bashing lately, so hopefully either OP or IB clears this up.
I recently had a similar problem and what is happening was enlightened to me. You have a soup of options in your portfolio. The system will automatically determine what the optimal combination of spreads will reduce the required margin. Sometimes the algo fails. I bet you saw the margin and over extended yourself. You can cross the limit real fast under reg t even if you had a lot of margin capacity before. I bet you didn't understand what the margin capacity was and took ib at it's word.
Portfolio margining with IB has its own problems too. for instance when you simply buy a call option under Reg-T then the cost of this option is substracted from your cash and you are NOT using any margin. But with the portfolio margining there is a margin requirement for the call option even after the cash substraction. clearly these differences do impact how you manage your liquidity...