The administrator created this script and run on sandbox page on Marathi wikipedia.
https://github.com/usernamekiran/mediawiki-bots/blob/main/old/faulty-5-sept-22.py
There were 3 edits those were not expected. It removed all occurances of 'अ', 'प' and 'फ'.
We have modified the script and it is now working as expected. But we do not know the reason why the bot malfunctioned on September 6. If someone can analyze this, we will avoid such misktake in the future.