Program counter getting corrupted inside the tick ISR

I am trying to port a FreeRTOS test project and facing issue inside the tick ISR wherein the PC is getting corrupted inside the tick ISR while restoring the context and the execution jumps to some invalid memory location leading to TRAP fault. Any pointers on debugging this issue?

might help