Wiki is not editable

I enabled the wiki section on a repo, and created a wiki page with some content using web UI. Now I’m not able to edit the wiki, it is showing the below error message on attempting to save/commit the changes from the web UI. Please help if anyone has faced this issue earlier.

I’m using, and noticed that editing the wiki after cloning the wiki repo and making the changes and pushing works. But editing the wiki pages from web UI is throwing this error.