Find a country you can fly to and from there fly back into Thailand, but be aware of the health certificate and insurance needed.
Alternative is the 1 year Extension of Stay at Immigration Office, but that has a lot of requirements.
Here you can find information about which country has which precautions
*******************************************************************************************************************************************************
**********
*****
*****
.htm?fbclid=IwAR0SyKepeULtEye5VxnHroCRw_AAFS0kuF39S-8WFeW8URb20qSLgsdpl6M