Change streams can’t be opened on the local database because it is an internal system database (as per the error message). You cannot open change stream cursors on the local, admin, or config system databases (or any collections in those databases).
It looks like you are trying to open a change stream on the oplog.rs collection, which is the underlying collection used for change stream events.
When you use the Change Stream API, you open change streams at a collection, database, or deployment level. The supported equivalent for what you are trying to do would be watching all changes for the deployment via Mongo.watch() in the mongo shell. You can also perform this operation from a supported MongoDB driver.