I realized that I was so hungry I couldn't work anymore
Why could you not work at all?
Because I was hypoglycemic and I didn't want to pass out.
I get that it was difficult to continue working. You should still try to at least finish the job. It is what you get paid for, so you should try to just power through it.
You're asking me to risk my health here.
It's important to keep on top of your health. If you really are feeling unwell, then you should see a doctor. It's not worth risking your life to complete your job. Tell your boss that you are feeling very unwell and you need to see a doctor. I'm sure they will understand.