After the commit in the loop, reset the counter v_help.

...
if v_help = 10000
then
commit;
v_help := 0.0;
else
null;
end if;
...