Traveling to Outside US on STEM EAD card after H1B approval before Oct 1st

I am currently in a valid period of OPT and I have a valid employment authorization document. Is international travel possible before Oct 1st if my H1B change of status petition has been approved?
If it is possible, I also want to understand any risks associated with traveling back before oct 1st as F1 is a non-immigrant visa and H1B is an immigrant visa.

Thanks in Advance.

Did your employer request cap-gap? Travel is not an issue however your DSO will need to issue a new I-20 authorizing the travel.
Make sure you have a valid F1 visa to enter back.
Btw H1B is a dual intent visa and it is totally fine for F1 to transition to H1B.