It is dangerous to use EAD while I-140 is not approved. Yes, you would be out of status if I-140 were denied. Moreover, you would probably need to cross border to re-apply your H4.