Losing Job while I-485 has been applied

I am in this situation where I might lose my job soon not sure when. My I-485 was accepted on Nov 21st 2020. As per rule I have to stay with the company for 180 days(May 20th 2021) in order to port my I-485 without having to apply for labor all over again. If I do get fired before May 20th, 2021 is there anyway I apply for portability. I have heard sometimes companies don’t file retraction immediately or that USCIS doesn’t process the retraction immediately letting you port. via your new company? My I-140 was initially approved via another company in 2009 and I got a priority date of Aug 31st, 2009. My current company filed for my I-140 and it got approved on Sept 2019.