Mongorestore using OplogReplay

I have admin user with below privilege : anyAction on anyResource and still restore is failing with below error -

replaying oplog
2023-06-22T08:15:12.152-0700 Failed: restore error: error applying oplog: applyOps: (Location40528) Direct writes against config.transactions cannot be performed using a transaction or on a session.

I am on mongdb 4.4.22 version.
This was never the case earlier while using mongo shell, recently we have started using mongosh.