Hey! The eos token can be replace with anything as long as it serves the purpose. For example you can use the sep_token or the mask_token to solve the error.
I am not entirely sure what you are doing and am not a pro at training bert otherwise, would rather go on the courses we have about training encoder-decoders!