Hi,
Thanks for reaching out to Microsoft Q&A.
Please go through the below link, it has many ways that can help to fix your issue
https://rarathemes.com/blog/fix-wordpress-internal-server-error/
Please Upvote and Accept as answer if the reply was helpful, this will be benefitting the other community members who go through the same issue.