@M ****
You can apply for a year extension of stay based on being married to a Thai. You need 400k in a Thai bank account in your name only that has been in the account for 2 months prior to applying. If you don’t have that then you have no option to extend your visa.
If you do have the funds, apply for the extension. You’ll be given a stamp for 30 days called a “under consideration” stamp. At the end of this you go back to immigration and they stamp you for the rest of the year. This extension comes with “zero entries” as you are already in country. You may buy a reentry permit to allow you to travel and return. Cost is 1,000 baht for a single or 3,800 for multiple entry.
If money or timing doesn’t allow for this then you’d need to leave Thailand and re apply for a new Non O in your home country.