After looking at my server logs:
/web/wp-content/plugins/.htaccess: AuthName takes one argument, The authentication realm (e.g. “Members Only”)
I found out that yoast installed a .htaccess file inside of my plugins folder. After deleting this file (wp-content/plugins/.htaccess), everything worked fine and the 500 internal server error disappeared.
-Curtis Droppelman
https://c.urt.is