Generally EOS application are not treated abandoned if the beneficiary travel outside the US while the application is pending however can be denied if the beneficiary is not present in the US at the time of adjudication. If this happens, it may impact H4 EAD application.
If you get stamping in India and then come back to the US before the approval of H4 EOS, and H4 EOS is approved, there will be a mismatch in your I-94 issued by CBP at port of entry and the one attached to the H4 EOS approval notice (I-797).
This mismatch in I-94 can create issues with driver’s license renewal. To fix the mismatch you can travel bordering country like Mexico or Canada and get the I-94 fixed.