Set a maximum height when displaying the error message so it doesn't cause the modal to be larger than the page.

Also switch to white-space: pre instead of pre-wrap + break word as it gives us more readable error messages.