Help with updateone function in golang mongo db driver

Hey, this is my first post here, but I need help with the updateone function.
I get the following error when I use

response field ‘n’ is type int32, but received BSON type 64-bit integer

All the versions until 1.7.4 do not have this issue. Did I miss something in the recent update, I’ve checked the Documentation but it looks the same

please find the sample code of what I am trying to attempt below

_, err := agents.UpdateOne(
	ctx,//context
	bson.M{"<random key>": "<random value>"},//filter
        bson.M{
	"$set": bson.M{"<random key1>": "<random value1>","<random key2>": "<random value2>"},
	}//update

agents is of type collections