@Adam **********
, IF you got an extension based on marriage to a thai, (which is the ONLY extension you can get off that O visa) and you lost your job, the extension would be fine. It wasn't issued based on employment, it was issued because you're married to a thai.
I always recommend people who are employed and married to thais to get the marriage extension rather than a Non-B and the employment extension just in case it doesn't work out with the job