Hello,
Just a blindshot. Your timer is running in debug mode. So if you do single steps, then counter will run out and set the timeout flag.
So if you take next step it will jump into ISR if that has the actual highest priority.
Check if you can enable debug mode on GPT.
Best regards,
Peter