Replacing ceiling vent cover
You are most likely hitting the metal flange around the vent that is used to secure the vent to the studs.  If this is what you are hitting, it will be right behind the drywall, then drilling a new hole for the screw is the right action.