I find a bug with the book enchanted and anvil.
I think it's because of ench négative of my diamond sword.
To reproduce :
1- Give item with custom ench négative
2- Take a enchanted book "sharpness V" for example
3- Use enchanted book with sword in anvil
4- CRASH xD