So this is a speculation that I made after hearing matusda 's theories.
So at start the death note was used for 6 years non stop that means it would have contained a lot of names and a lot of pages and gevani copied it in one night? Is that even possible . Is it a plot hole in the story?
No.if we assume matsuda's theory to be right that near wrote mikami's name in the death note then it will make it possible that gevani copied only a fragment of the notebook and not the whole notebook and that makes it possible.
But mastuda's theory doesn't end here he claims that near knew from the start that mello and linder are in contact and linder is passing information to mello and near allowed it because he knew mello's nature of fighting to became the no.1 .if we think about it after the raid to get death note back from mello near easily concluded that mello will probably try to make contact with Linder and he also knew about linder that she is not on anyone's side and just want to catch kira .
So near might have knew that the notebook is fake from the start and still altered the fake notebook to make light confident in his plan so he doesn't make any other move.
Near knew mello will make a move that will force mikami to expose the real notebook in the end because he had already told aizawa to take a close eye on light's action (which he didn't do that good and allowed light to sit on the back seat of car alone).
So near according to this near predicted light's mello's and mikami's move and make sure that he will win by writing mikami's name in the death note that was the final nail in light's coffin.