4 months or 40 years, no employer should treat you this way.
I’d also say it’s potentially worse to get fired this early on. You have to restart any waiting period for health insurance or 401k, deal with any potential life-changing accommodations you had to make to work there, and live off what little you could make between two periods of unemployment.