Seems like this is going to work out for you anyway, but a few thoughts for next time, in no particular order:
1. Consider a wider spread. One strike apart often doesn't maximize return on margin (at least from study I did a few years ago, ~2-3 strikes apart is the sweet spot for that) and the tighter the spread, the more binary the position. I typically do 20-30$ spreads on TSLA at this price range and sometimes up to 50. A practical side benefit is you end up with fewer total contracts, which is useful if you have a hard time stomaching the kick-in-the-head commission from rolling or closing early. Its all relative (bigger position typically is bigger return), but still, it sucks to close 100x ICs or whatever at ~50 cents a contract.
2. "Timing" the market is a gamble. (I can't give advice on gambling) Instead, develop entry and exit points before you open a position....then timing becomes a non-issue. The follow on to that: if for whatever reason you make a real time decision that you need out of a bad position--including rolling to avoid ITM execution, and including superseding your entry and exit points--do it ASAP.
3. IMHO it is not worth taking a loss until you can't practically recover. The major issue here is that the casino odds of selling options means that if you always just take the loss, you will lose money. Beyond that, as no doubt opined upthread at some point, that's my own personal rule and its definitely capital inefficient, but it also provide structure to next actions in what can otherwise be a frustrating/emotional scenario. THE WORST thing a trader can do after a bad beat is to try and recover the loss on the next cycle, and by forcing myself to recover from the current bad position I pretty much box myself out of turning around that capital and doing something stupid with it. The only thing worse than losing $25k on a bad spread is turning that capital right around into another $25k loss. BTDT.
4. Broken record here on price analysis, but consider more defensible strikes. ~$550 is clearly a support price right now; that would have been a stronger anchor leg than 575.
5. Read through your IBKR terms. They're not doing anything they haven't already told you they would do.
6. NEVER let buying power get anywhere close to 0. Always have buying power in reserve for things like roll-splits and, if you're selling naked options, margin hikes. A good rule of thumb is having ~double the margin you need for the sum of the positions you're opening. If you're opening really diversified set of positions (like, ICs for 5 different tickers) you might be able to reduce that under the statistical probability that not all 5 ICs are going to go into the *sugar*.
7. Criteria for selecting future contracts is pretty well laid out upthread. I'm a strong proponent of never-for-debit. If you're going to take a debit, you close out completely. Rolling at a debit is a pretty JV play as it reduces profit (since that debit is explicitly reducing the initial credit) while maintaining the same amount of risk in what has already proven to be a bad trade.