Clean up `StackOverflowError` construction.

Ensure that the required classes are initialized early.

Also address a style issue - line too long.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: testrunner.py --host --interpreter --no-image
Bug: 253570082
Change-Id: I8f0c3db3eb1ffdc4fca5dd6467c293c9a0d71d4e
3 files changed