I don’t know what hospital you’re in but contact a tourist friendly hospital (bumrungrad, BNH, Bangkok Hospital) and ask the customer service desk about medical extensions see if you can obtain some good info from them, or if they will help you out in anyway (it might cost you some money if you’re not a patient there so be prepared)
You have the 7 day get out of Thailand stamp…you’ve been here 2 years (almost) and you never tried to make a plan B, failure to plan has left you in this situation…good luck