Couldn't run the scheduler after handling timer 5 Interrupt

The priority is too high if using FreeRTOS calls in this ISR. That’s the reason for the assert.
The choosen prio has to match configMAX_SYSCALL_INTERRUPT_PRIORITY in your FreeRTOSConfig.h
See https://www.freertos.org/RTOS-Cortex-M3-M4.html and mabe also this pretty good picture for details.