Yesterday out of nowhere they didnt renovate my work contract and now Im feeling suicidal.

So yesterday i did arrived to work and all of a sudden i was imediately know by my colleagues that half of my team, people from other teams etc. were being letting go(we were all in probation and our contracts ended at the end of this month) unfortunately i didnt make it because all of a sudden they were moving people to labelling and there was no spot for the languages i know. Im feeling devasted because right now i know that i have to update my CV,start job hunting etc. because the question is how long i gonna have a new job? i dont have much in terms of savings,i have to pay rent,food,i dont know polish etc. and i need to have this resolved ASAP or im toasted.
I could colect unemployment beneficts but since i did work only for 3 months here idk if that is possíble. :/