Ok. Invalid interrupt priorites might be another reason for data corruption given that it’s not an application code bug, of course.
See Using API functions within interrupts in FreeRTOS FAQ and maybe also Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg or search the forum when in doubt.