I'm not currently working on Trigger's PC but when I get back to it I will be happy to work on this. In the mean time I'm gonna need a little more information.
Firstly if you wouldn't mind uploading both saves.
Second, could you specify the exact steps you take to reproduce the error as I can't reproduce it myself.
When I import a secret base from my first Emerald save to the second one and try to Edit Trainer I get this error and the program crashes: