I can confirm Stable API strict validation works as I tried adding a call to await client.db("admin").command({ replSetGetStatus: 1 }); right after client connection to see if it would fail, and it produces the desired failure:
MongoServerError: Provided apiStrict:true, but the command replSetGetStatus is not in API Version 1. Information on supported commands and migrations in API Version 1 can be found at https://dochub.mongodb.org/core/manual-versioned-api
Note that withTransaction isn’t a database command, but is an implementation of the Convenient API for Transactions specification, and startTransaction isn’t a database command either, but defining behavior on a client session object.
Do you have a specific error with a stack trace you can share?
Apologies, I misread the issue. What you’re experiencing is actually NODE-5748, which has nothing to do with transactions but would produce the behavior you described.