Take the redundancy payout and walk away.
Had a similar situation.
Employed at BOI company 2006 to 2017.
Never a warning and always good performance reviews.
Called into HR.... got told the news we are making your position redundant effective immediately, 1 month notice but clear your desk today.
Told to sign some paperwork within 2 weeks and we will give you an additional 3 months salary on top of the full redundancy payout.
Cha Ching !