Encapsulate window in frame

If I have well understood. You are printing the frame, face sitting down the bed, pausing the print at a certain height, inserting an acrylic panel and resuming the print?

And you want to prevent the nozzle from scratching the acrylic panel?

Maybe try to enable or increase z-hop