Later this year and you want to stay 7 weeks on a 30 day stamp?
More than time enough to apply for a Single Entry Tourist Visa and get 60 days on entry without hassle with airline companies or buying fake tickets to show.
You just recieved a stamp at Immigration but they told you shut up or we will shoot you. Questions about stamp and travel are asked on Facebook, not at Immigration office.
Application fee is 1.900 thb no matter on time given or even denied. So you did not pay for 1 year.
You are not allowed to be inside a foreign country with an invalid passport, which is the reason that the last day of permission to stay inside Thailand is the same as the last day validity passport.
And you think when you make a new passport, the Thai Immigration Bureau will delete all your information on their database to please your way of living in Thailand?
I guess you have a big stamp in your passport with in line 2 the text "Extension of Stay permitted up to
*****
/2024.
Buy a Single Re-Entry Permit at your local Immigration office, cost 1.000 Thb, leave to Europe, apply for the new passport, come back using BOTH passports, get a new entry stamp Admitted until
*****
/2024 in your new passport.
And apply for a new Extension of Stay by handing over both passports, your idea is good, simple and can be done without any problems.