When a block is broken in minecraft the behaviour of the item entity that appears is incredibly scuffed. For a long time I have seen people completely ignore this issue or pretend it does not exist. Essentially any sugarcane farm that relies on pistons pushing the items into collection is not reliable and fails often. This is mostly an issue if your goal is to make such a farm as big as possible because the items that are not collected lag a lot.
My previous 2 videos about sugar cane farms:
• Optimized Sugar Cane Farm Design for Serve...
• The Cheapest Automatic Sugar Cane Farm | M...
My discord: / discord