::
Something similar happened here. I can't recommend it, but I would do the DSDP for the previous 5th year. In other words, if I left in 2000, I can't do the year 2000 but the year 2018 or 2019 (you have to check which program is released today).
If we don't do the CSDP at the time of departure, then it's all over.
Double tax residency for me is the coldest thing, except if you have a lot of wealth in Brazil and want to keep your investments, even if they produce great returns through a regular bank account. If you have a CDE account with the right to invest, that's fine.
Giving it away is an option for me because after accumulating it in euros, imagine if you don't give it away and when you try to get it back, the government will want its share with interest and fines...