Was your I-140 approved? If yes,you don't worry about anything.You can use your EAD to work all the time.Or you can find a new job before you are laid off and transffer your H-1b to a new company.