The recent JAVA-1788 support for returning results from insertions uses Collectors.toMap which contains a bug in the openJDK when collecting null values.
The perf tests highlight this bug as any bulk inserts of RawBsonDocuments will trigger it on openJDK 8 & 11.