Hello
For heap corruption, we may need to enable heap tracing.
Here is a link for reference:
Debugging Heap corruption with Application Verifier and Debugdiag - Microsoft Community Hub
The forum resource is limted to troubleshooting present issue, it is recommended to open a ticket for more resoures to troubleshooting present issue.