PIC32MZ, MPLAB Harmony with I2S hangs after adding extra function
Exactly which line doesn't it get to? Usually when I run into these instances, I'll step through the assembly to see what register the processor is unable to read. 

However, just looking at the code you've posted, I'm suspicious of where the array ConvertedAudioData is defined. It's possible the compiler is treating this as "implicitly declared", putting the data on the stack, and by the time you leave the scope of that for() loop it's invalid.