To find detailed error messages about this issue, please follow below steps:
1.Go to IIS Manager -> Right click SharePoint Central Administration -> Select Explore.
2.Open "web.config" with Notepad.
3.Find <customErrors> tag using CTRL+F and set its "mode" attribute to "RemoteOnly".
4.Recreate the web application and you will see the details of this error.
To trouble the Event ID 5013, please follow this article.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.