Performing bulk insert with custom _id (Long data type instead of Object)

While Performing bulkWrite with custom _id (Long data type instead of Object), Mongo DB is returning duplicate key error.
Q1. How to fix this?
Q2. Is there a way to tell MongoDB to use LONG instead of ObjectId while inserting a document?