@Luc *******
I had to do this in December 2021 as I had veen stranded in a remote area of S.Philippines for 668 days due to covid. Once you have got your stamps transfered to your new passport do this:
When your visa is close to expiry date leave Thailand and come backafter it has expired. You are now starting from scratch.
Enter on tourist visa or visa exempt.Register TM30 where you live
Go to Changwattana immigration and apply for 90 extension.
When you have 30 days left or more on the 90 days go to same place and apply for Non O retirement.
Show the money in the bank. Make sure you take your bankbook and deposit 100bhat that day to show it is up to date and provide 3 months statements (go to bank the day before and request printed signed copies of last 3 months accounts and a letter from bank stating this is accurate).
Take proof of where you live (rental agreement or book) and a hand drawn map of the area you live. Pay the money and if all goes well you will be stamped for 1 year then just repeat every year....so simple
p.s. get photocopies of every page of bankbook/passport/bank statements. Don't get colour copies, mine were refused once as the Immigration Officer said they were "Mi swy" 😆.
Once you have your stamp go and apply for your re-entry.