This surprises me, actually: he was willing to invest a ton of time and effort in this, but rolls over at the first sign of trouble? It's not like it's surprising that he eventually got caught...
So we can't know what Hector's state of mind was, but we know that when he was confronted with prison time and the immediate loss of freedom he responded by mitigating that with co-operation. If you compare the impact on his personal life of that choice, versus 'taking one for the team', well it seems he made the right choice for Hector.
I suspect that recruiting people who would make the right choice for 'the cause' would require a different strategy than what is currently employed by the Anonymous community.
It supports law enforcement's narrative that Anonymous is a group of criminals with no honor or allegiance to one another.
An incident that comes to mind immediately with Greenpeace & law enforcement is the killing of one of its activists in New Zealand by the French Secret Service in 1985 when they sank the 'Rainbow Warrior'.