Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize