I think I've narrowed it down to the smallest reproduceable example. I've emailed you a .zip of the project with instructions on how to reproduce the error.
Thanks for looking at this. I can't wait to start using PEM editor. It looks incredible.
Brandon Harker
Sebae Data Solutions