Thank you for your interest in our products and for contributing to our community.
Flag for OPWMT is generated based in Trigger parameter (for your case at tick 0).
The delay of ~2us is the time that takes to the MCU to enter to the interrupt and toggle a pin. The issue is that PWM period is too fast.
It can even be seen that the time to toggle a pin twice is considerable with respect to the established PWM period.
_Leo__0-1759957833990.png
The workaround that I can propose to you, is to phase shift the OPWMB signal to match the trigger into the low time period. A phase shift of 50 ticks look like this:
_Leo__1-1759957853881.png
But I recommend you set the phase shift value empirically according to your needs.
We hope this resolves your issue.