VarSim may generate read names that cannot be written into SAM or BAM format. bwa-mem fails to perform alignment on these reads.
chr13_31453404_33401170-1248109-,chr13_31453404_33401170-1248192-I,chr13_31453404_33401170-1248107-,chr13_31453404_33401170-1248218-D,chr13_31453404_33401170-1248109-:chr13_31453404_33401170-1248218-D-,chr13_31453404_33401170-1248217--:::::::::::622992MjYyMDg=:0
samtools import can be used to check validity of read names.
I used seqkit to rename all reads.
seqkit replace -p .+ -r "seq_{nr}"