PERM status and I140 filing with different employer just before H1 max out

You can file one year H1b extension based on approved PERM. There is no need to leave if PERM is approved before your H1B 6 year max out.