Infinite Loop error detected


so when i equip a backpack and pick up the same 2 items i get a loop error
i follow a tutorial and my function is identical to the tutorial.