Wp die causing 500 Internal Server Error?

Use die($msg); to do what you’re trying to do. wp_die() returns an HTTP error code and passes your message to the error page, and the default code is 500 (internal server error) if you don’t set the return code in the args.