There are common options for most BBMap suite programs and depending on the file extension the input/output format is automatically chosen/set.
BBMap.sh has a length cap of 6kbp. Reads longer than this will be broken into 6kbp pieces and mapped independently.
More at https://www.biostarhandbook.com/tools/bbmap/bbmap-help.html