Could you post the exact error message?
What happens if you swap the features:
x = torch.randn(128, 2420)
lin = nn.Linear(in_features=370, out_features=2420)
output = lin(x)

Which error message is thrown then?