The current food Requirement is at 274, this should not be the Reason (see above).I do not know what state you are in, I have never seen that bad ending and I have played the game many times. Do you have a very large population of girls, bith human and monster?
Check the Domain on the left side bar there is a reference
" Your children need xxx food this week. "
AND
I noticed when cheating (the manual way via the JavaScript console) to cheat a value and save DOES NOT preserve the 'cheat', you need to move, do something else for it to 'apply'
Also, are you referring to the In-Mod-Cheat-Menu, or something else, external? And if you are referring to the Mod-Cheat-Menu, woud moving out of the Cheat Menu and Click on "Next Week" in the Camp-Screen be sufficient? If so, then the Problem isnt in the Saving of the Cheat Variables, either.