What happens if I can’t renew my residency in time or have a gap in my renewal?
If this is the case, it’s okay as the gap won’t have any impact on your legal residency. In fact, the required term necessary for citizenship or permanent residency starts from the date that you were first issued a visa. Any residency gaps will only impact your ability to travel within the Schengen Zone.