WordPress cannot show a custom error page for a server error (500) due to the nature of the error. Instead you can create a .html or PHP page, independent of WordPress.
Some hosting companies have a folder outside the website's root folder which you can put custom error pages into.