If anyone is looking for a solution for the time being, I found something that works for me.
If I create a blank form with no codebehind, and add an extra step at the beginning of the AutoExec macro to open that form first, and then open the real form afterward, it does not throw any errors. I...