Adding clips to timeline -> my Plugin now keeps on crashing Premiere (27.0)

Windows 11
Premiere 27.0

It was working OK before I added features that insert some more clips in the timeline.

Odd that the plugin takes down Premiere, but regardless how can narrow down what causes the issue ? Are there tools I can turn on (or logs to parse) to help identify the root cause ?
(So dev can have a meaningful repro / narrow down to small set of calls).

It seems like it is caused by some kind of race condition, as if I put breakpoint and run small chunk everything seems fine. But if I run everything without breakpoint/pause → kaboom !

Thx !

PS: I remove some of the change (creating on various track iterm / deleting some track item), the only difference now seems to be the number of clip (to add to sequences)

Steps the code takes:
1 * create a sequence
2 * get its sequence editor
3 * create in and out points on a clipProjectIem
4 * insert clip in sequence (video and/or audio)
5 * repeat #3 multiple times
6 * loop back to #1 an repeat the whole loop a few times

Just after posting I came across How to Prevent UI Freezes and Crashes During Bulk Timeline Edits via UXP API?

I seem to be hitting the same issue - so not fully fixed in 27.0

We believe you, and…

…can you provide us with an example .ccx that reliably reproduces the behavior?