Use try: ... except: ... To recuperate the specific data that is going wild. Also, make sure to keep your BatchNorm off, it really is not supposed to give you such error.
Update: your input of a BatchNorm1D should be (N,C, L) and not (N,L) which is your case.