I can’t see where you create your “sound” variable, make sure you include everything.
I’ve never used those options for “createStream”, just FMOD_CREATESTREAM.
Eg. this works for me;
FMOD::System *system = NULL;
result = FMOD::System_Create(&system); // Create the main system object.
result = system->init(512, FMOD_INIT_NORMAL, 0); // Initialize FMOD.
system->createSound("assets/castlevania_4_cv-1.xm", FMOD_CREATESTREAM, NULL, &bg_music);
system->playSound(bg_music, NULL, false, &channel);
The important thing is - have you tried it with other module files? Try a different .IT file, or a .MOD file, does it still crash? If it crashes with every file you try, then something is wrong with your code. If it only crashes with that one file, then perhaps it’s a problem with that file, and you can maybe load it into OpenMPT or MilkyTracker and re-save it, see if that fixes it, something like that.