Well, considering many countries and many airlines, but not Thai immigration, require a passport valid for at least 6 months, the easiest thing to do is renew your passport.
If it is a U.S. passport, then U.S. passport processing times have come way down and are much faster nowadays
As the first DTV Visas were issued late July 2024, the earliest those who were issued those early visas and quickly used them to enter Thailand and stayed in Thailand throughout that period to get to 180 days would be late January 2025....
if your wife is technologically inclined and has a current Thai ID card, then could try to see if her Thai documents are online and obtain copies via the ThaiD app (all free and relatively easy to use)!
Also, you or or wife (preferably your Thai wife) can fill out a Power of Attorney (POA) and have anyone pick up a Thai or English copy of your Thai Marriage Certificate at a District (เขต/อำเภอ) Office as well if not in Thailand....
Can easily get both a Thai and English copy of your Thai Marriage Certificate at the District Office (เขต/อำเภอ) where you were married or at any District Office actually
There hasn't been a TM6 Arrival/Departure Card needed at 16 land borders since 15 April 2024 and extended to 30 April 2025. Also, at Airports since July 2022