@Brandon ***********
is correct.
Keep in mind that your nonb extension finishes the DAY you stop working.
If the WP expires or gets canceled your are overstay from that date.
Once your reason for extension ends, it's done.
If you are not prepared to apply for the marriage extension immediately you may be able apply for a 1 time 60 day visit Thai family extension.
To give you time to sort out the rest, usually the money.