It’s important to mash your lentils well before making your loaf so it holds together. You don’t want them too mashed so that they are paste like, but if they are not mashed enough, they will crumble. If you’re still having issues, you can try adding a binder or egg replacer to the mixture like JUST Egg or flax eggs.