nn.Conv1d expects your input to be [batch_size, channels, length], see the docs 79. Could you try to swap the axes using:
b_x = b_x.permute(0, 2, 1)

Alternatively you could reshape it in your Dataset's __getitem__ so that your training loop stays a bit cleaner.