I found the problem but I don't know why this caused a problem. The following code caused me to get multiple strange error messages on other places. I changed this code and all the strange error messages went away and my game stopped crashing. My code used to say.
physics_apply_force(x, y, N2*3000/speedbullet *chasenem2.phy_linear_velocity_y, N*3000/speedbullet *chasenem2.phy_linear_velocity_x);
But I found out that when I divide by speed bullet or divide by chasenem2.phy_speed or pay_liner_velocity I would get the strange error messages other places in my code. I had even been getting error messages saying that the position of some of my objects was undefined. And I had first checked to make sure they existed. So they existed but had no position. I was getting so many strange error messages that went away after I stopped deciding by phy_speed I'm my code. I don't know why that was a problem but I fixed it and now my game no longer crashes.