While upserting for FindOneAndUpdate I am getting duplicate error Golang

Error in fetching result for FindOneAndUpdate operation for newFeed collection in crud.go with following error (DuplicateKey) E11000 duplicate key error collection: jdsocial.newFeed index: id dup key: { _id: 1672383533212741.0 }

I am getting the same error when upserting, which is strange as upsert should either update the document or create a new document if there is already a document for given _id