This should of course never happen, but it's a better error message than invalid/unexpected bytes.

Is there a way to get more useful information inside the get/put instance functions?