Lsm6dsox interrupt task

You should show the code of the ISR and post-processing task. Otherwise it’s impossible to guess. Interrupt priority might be also important. Which MCU are you using and which FreeRTOS version ?
Stopping all other tasks on interrupt sounds strange (I’d say broken) and might be hard to get right.