The error is raised in the “dry run” section, bot the tracing, since you are passing a 4-dimensional input, while 3D models expect a 5-dimensional input.
You could unsqueeze the “depth” dimension and the code should work:
img = torch.zeros((16, 3, 1, 112, 112))
_ = model(img)  # dry run