As I know, 500 Internal Server Error may be caused by:
- Web config file have been modified in an incorrect format.
- The SharePoint Application Pool stopped.
- The Security Token Service Application Pool stopped.
You could follow below tips to troubleshoot the issue.
Have you changed the farm account password?
1.Open IIS Manager -> Browse the SharePoint web application which you are facing the 500 Internal Server Error -> Get a detailed error message If there is any error in the SharePoint Web Config file.
2.Open IIS Manager -> Application Pools -> Find the web application pool status is stopped, then start it.
If application pool is started, then stopped again, select the web application pool -> Advanced Settings -> Identity -> Use the farm account with correct password.
3.Open IIS Manager -> Application Pools -> Check whether Security Token Service Application Pool is started.
4.Make sure that firewall is off.
5.Make sure that SharePoint Timer service is running.
6.Do IIS reset.
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.