I have had a friend of mine recently get laid off immediately. He was able to negotiate a 6months severance pay.
So the best option would be, to ask them to pay you the severance. If they deny, tell them you will explore legal options and recover the dues.
Also remember, the company cannot randomly put performance issues (it’s a common reason by HR). For it to be legally valid, there will need to be constant evidence of performance feedback given to you over email (which they will not have).
So, best option - tell them to pay severance for 3-5 months. If they deny, tell them you will explore legal options since the company cannot layoff immediately.