When formatting error messages, first try to format into a fixed buffer instead of formatting once to get the length then a second time to get the actual format. https://github.com/ruby/prism/commit/557cffe23e