If your chocolate loaf cake didn't spend enough time in the oven, the inside will not be fully baked, which will lead to some collapsing. The collapsed area will be more dense and possibly even gummy. Make sure to use a thermometer and a cake tester to know the middle is baked completely before pulling it out of the oven.