You better stop working right now
If your OPT does not expire, it may argubly be still valid because A company lays you off and they suppose to revoke it. However, technially you lost OPT and are on H1-B pending right now after the H1B was approved, not allowing to work.