Those B’s are not a dealbreaker.
The reason I didn’t answer your question directly is because there is no good answer to give. Ivy league admissions are a crapshoot for anyone - even the 4.0/2400 crowd. There’s just really no telling especially this far out; but your chances are by no means destroyed.
BTW: Stanford and a few other schools don’t even consider 9th grade marks.
It’s risky to mention mental illness on a college app, as colleges are paranoid about having suicides on their campuses. I would tread very carefully and not mention it at all, unless you have a very compelling and unique story; even then, probably not.