is your lawyer Jerry Zhang?
"如果我老婆申請EAD還沒下來,之前的H4又到期了,這期間她身份算什麽?(不會非法吧?) "
You defintely have this confusion if you follows " using EAD caused to enter AOS" rather than "filing I-485 is the cause of entering AOS"
By the way, your wife is fine and you can petition H-4 for her.