Development tools for Zephyr on STM32Workbench for Zephyr: VS Code extension to set up, build, flash and debug Zephyr applications on STM32.Devicetree manager: browse, edit and visualize Zephyr devicetree, STM32CubeMX-like for Zephyr.
You appear to be creating but not destroying your dialog box; maybe this is your memory issue?
I'm not familiar with the Segger windowing stuff but maybe ending the dialog from another thread (your usb thread) is not correct.