As long term residents in France we were given 10 year cards with the undertaking that renewal would be straightforward provided we had behaved ourselves and circumstances had not changed ie we were still financially independent. They do eject people who do not fit their requirements.I don’t know about other eu countries but here in Hungary are residence permits under the withdrawal agreement have to be renewed in 2026 and you have to fulfil all the requirements ie time out of the host country and criminal record ect in order to have it renewed ! and yes they can revoke the residency ( visa / permit ) as your not a citizen of that country same as any country in the world