If two months overstay then you may pay a fine at airport and exit but if you are caught in between then to IDC followed by all legal procedures , embassy involvement and finally extradited to home country
You posted on 18th August your damaged passport details and asked for advice and again on 26th you make an appeal. What were you doing till now since then. This should have been your priority rather than going in on a fishing expedition! Just get back home with emergency passport and sort out
if someone is working in Thailand with a work permit then the embassy will issue a new passport and for tourists they do not issue a new passport (and only during covid time they issued a new one as many got stuck )
They will issue a temporary passport which will enable going back to India only!
Also to issue a passport in lieu of an old one ( damaged or expired ) it is 6 weeks if the old passport was issued elsewhere and 10 days if the old passport was issued in thailand . So better go back to India sort out all and then travel