How to reproduce: Build a transaction with ~190 inputs, get the hex and issue `testmempoolaccept [\"{txhex}\"]` in the GUI console. It'll give back a `TX decode failed (code -22)` with a stripped txhex where the end is cut down.
break;
                            }
                            if (curarg.size() && fExecute)
                            {
                                
                                UniValue subelement;
                                if (lastResult.isArray())
                                {
                                    for(char argch: curarg)
                                        if (!IsDigit(argch))
                                            throw std::runtime_error("Invalid result query");
                                    subelement = lastResult[atoi(curarg.c_str())];
                                }
                                else if (lastResult.isObject())
                                    subelement = find_value(lastResult, curarg);
                                else
                                    throw std::runtime_error("Invalid result query"); 
                                lastResult = subelement;
                            }
                            state = STATE_COMMAND_EXECUTED;
                            break;
                        }
                        
                        breakParsing = false;
                        
                        close_out_params();
                        
                        if (lastResult.isStr())
                            curarg = lastResult.get_str();
                        else