I recommend Kropotkin's book about Mutual Aid regarding this topic. Disregarding his obvious political affiliation he is one of the first critics of the then-emerging social-darwinist readings of animal behaviour with regards to Evolution and therefore deals with this topic quite extensively.
He was a zoologist apart from all the other topics he had time to deal in because of his noble heritage. Here is the wikipedia article [0] since I do not know how HN regards links to e.g. libgen.
[0] https://en.m.wikipedia.org/wiki/Peter_Kropotkin