If you can just cancel the previous one
You as an Ecuadorian have the right to obtain your passport as long as you have no legal impediments in Ecuador, obtaining a new passport cancels the previous one since it must be declared as lost, if obtaining a new passport will harm the procedures with immigration, you should consult them with migration or your lawyer.
Thanks! Your answer is awaiting moderation.