Hi @Khushi Shaikh ,
What's your build version of SharePoint server?
Per my test,If the build version is eariler such as 15.0.4569.1506, I could reproduce your issue.
In another test environment, the SharePoint build version is 15.0.4989.1001, which works well without any error, we could add a new document both in Chrome and Edge.
We suggest you install a newer CU if your version is too old, then compare the result.
--------------------------------------------------------Update------------------------------------------------------
I install the latest CU from here, then I could add a new document in chrome and edge, as shown below:
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.