I tried to find where the heap corruption occurred by elimination, but to no avail. <img width="978" alt="Image" src="https://github.com/user-attachments/assets/71c9f0a8-f2e6-485b-a25b-849586130d87" />