Preserve newlines and align exception stacktraces left (#15456)

Change-Id: I1679f63554ff7a9f7f1e51e0988f03aede26c1ba