What is the best infill pattern for shearing strength?
Yes, some infill patterns are better than others for preventing separation of layers. Basically (modulo some assumptions about uniformity of distribution of force), the shearing strength of the part in the Z direction at a particular layer is going to be proportional to the surface area of bonding between successive layers. So infill patterns that stack identical infill extrusions on top of each other at each layer should be expected to be much stronger than patterns where successive layers make only partial contact. In other words, "2D infill patterns" - grid, lines, triangles, tri-hexagon - should be a lot stronger than "3D infill patterns" - cubic, octet, gyroid, ... This matches my experience printing bolts oriented along the Z-axis - ones printed with gyroid snap easily unless other measures are taken to strengthen them, while ones printed with triangles are fairly strong (though nowhere near as strong as ones printed oriented in the XY plane.

If you have other reason to prefer a "3D infill pattern", its weakness can be mitigated mostly by increasing the infill line width, so that the lines of successive layers which don't entirely overlap still touch on more surface area. (Just increasing the infill line width also works to make "2D infill patterns" even stronger.) However, be aware that with high print speed typically used for infill, increasing infill line width can easily exceed the capability of your hotend, resulting in underextrusion, extruder skipping, and stringing all over the place.