Clear the check engine code, it's got to have one if it's going into reduce power mode.
I'd even unplug the throttle body and make no pins are bent or damaged and plug it back in. Then fix the vacuum line and see if it runs better.
Post pictures of the plug or line you are talking about, we may know it goes.