My other issue was closed, but the bug remains, so I'm opening another one to track it. Please refer to the description in the other issue.
#8241
As a summary, these are the exact same internal definition, just with a different relationship name:
$object->camelCase->toArray(); // fatals
$object->snake_case->toArray(); // works