Trench accidents almost always trace to OSHA & Industrial Code violations.
OSHA requires protective systems (shoring, shielding, sloping) for any excavation 5 feet deep or more. Industrial Code Rule 23-4 has even more specific NY requirements. When the cave-in happens, it is almost always traceable to a violation — and a violation of the Industrial Code triggers (6) liability against the owner and GC.