gh-111178: fix UBSan failures in Modules/_struct.c
#129793
+45
−28
Merged