Looking closer at the picture, it looks like the back side of a duct boot. The boot is securely screwed into the studs so it isn't going very far, so close to zero movement. I would take drywall mud and mud right up to the duct, short of 1/8"-1/4" all around, then fill the gap with paintable...