It's 60 days, not 2 weeks, and you can transfer an H1B over to a new job within that 60 days, or if you know you're going to be terminated (e.g. you're on a PIP) then you can transfer the H1B to a new employer anyway.
Wouldn't say it's necessarily easy to do so, but it's not an automatic deported from the country kind of deal.
Still makes being fired a lot scarier. If I knew getting fired meant I’d only have 60 days to find a new job or I’d be deported, I’d put up with quite a bit more from my employer than I currently do.
Even 60 days is a short timescale to find, be interviewed for, and accept a job in a technical field. My last job application took nearly that much time just from the first interview to an accepted offer, and that's without the added complication of transferring visa status.