That’s an error in modbus’ services.yaml. You should probably raise an issue on github.
services.yaml
You should still be able to enter higher number though.
Or 4097?