I saw this message with nearly every instantiation of an ECS task:
CannotInspectContainerError: Could not transition to inspecting; timed out after waiting 30s
The tasks write 4-5 GB of data to a bind-mounted directory on the EC2 host, which was using a GP3 volume type.
The problem went away after changing the volume type to GP2.