Trading With A Rescued Unit Bug

Hello, I’ve been working on a rom hack of Sacred Stones for a long time. I just found a game breaking bug that I’m not certain how to solve. When trading, if you move between potential trade partners and pull up the inventory of a rescued unit, the emulator will immediately crash. Further the save will be corrupted instantly. I need to find a solution for such a game-breaking bug, be that disabling trading with rescued units or fixing the bug directly.

Does anyone have any advice on how to fix this or work around it? I’ve come so far that I feel rebuilding the rom would be the absolute last resort.

Attached is the report.7z: Dropbox - Fire Emblem - The Secret Society.REPORT.20240416102233.report.7z.report.7z.report.7z - Simplify your life