[Release version 0.10.71] Update error handling for invalid state and pointer