When in an anvil, you can continue to stack water protection. As far as I tested, this only affects XP cost, and not the actual enchantment book levels. I've gotten as far as 524,294 levels cost- but it could be more. I have not tried this with other books yet. 1.20.1 fabric.