RUBY-1806 changed the location of the IllegalKey error, and it's causing test failures in driver master. Since the IllegalKey error is being removed in RUBY-3109, we should just condition these tests on less than bson 5.
Also fix errors related to RUBY-3079.