Misc fuzzing fixes
Misc fuzzing fixes: a task in life-science-SWE1.0 (Harbor dataset). (The fuzzers finding these issues will come in a later PR.)
The task
(The fuzzers finding these issues will come in a later PR.)
Part of scalingX/life-science-SWE1.0.